update some more things in utils
This commit is contained in:
@@ -9,6 +9,5 @@
|
|||||||
#include <utils/math/gryphn_mat4.h>
|
#include <utils/math/gryphn_mat4.h>
|
||||||
#include <utils/math/gryphn_math.h>
|
#include <utils/math/gryphn_math.h>
|
||||||
#include <utils/gryphn_color.h>
|
#include <utils/gryphn_color.h>
|
||||||
#include <utils/gryphn_color_format.h>
|
|
||||||
#include <utils/gryphn_image_format.h>
|
#include <utils/gryphn_image_format.h>
|
||||||
#include <utils/lists/gryphn_array_list.h>
|
#include <utils/lists/gryphn_array_list.h>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef int gnBool;
|
typedef uint32_t gnBool;
|
||||||
#define gnFalse 0
|
#define GN_FALSE 0
|
||||||
#define gnTrue 1
|
#define GN_TRUE 1
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
enum gnColorMode {
|
|
||||||
GN_RED, GN_RGB8, GN_RGBA8, GN_BGRA8,
|
|
||||||
GN_DEPTH8_STENCIL24,
|
|
||||||
GN_DEPTH_STENCIL = GN_DEPTH8_STENCIL24
|
|
||||||
};
|
|
@@ -122,10 +122,10 @@ static int gnStringFindString(const gnString string, const gnString value) {
|
|||||||
char first_char = value.value[0];
|
char first_char = value.value[0];
|
||||||
for (int i = 0; i < strlen(string.value); i++)
|
for (int i = 0; i < strlen(string.value); i++)
|
||||||
if (string.value[i] == first_char) {
|
if (string.value[i] == first_char) {
|
||||||
gnBool same = gnTrue;
|
gnBool same = GN_TRUE;
|
||||||
for (int c = 1; c < strlen(value.value); c++)
|
for (int c = 1; c < strlen(value.value); c++)
|
||||||
if (string.value[i + c] != value.value[c]) {
|
if (string.value[i + c] != value.value[c]) {
|
||||||
same = gnFalse;
|
same = GN_FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user