Kohi Game Engine
kresource_types.h File Reference
#include <containers/array.h>
#include <math/math_types.h>
#include <strings/kname.h>

Go to the source code of this file.

Data Structures

struct  font_glyph
 
struct  font_kerning
 
struct  font_page
 

Macros

#define INVALID_KTEXTURE   INVALID_ID_U16
 
#define INVALID_KSTATIC_MESH   INVALID_ID_U16
 
#define INVALID_KAUDIO   INVALID_ID_U16
 

Typedefs

typedef enum ktexture_type ktexture_type
 Represents various types of textures. More...
 
typedef enum ktexture_flag ktexture_flag
 
typedef u8 ktexture_flag_bits
 Holds bit flags for textures.. More...
 
typedef u16 ktexture
 Represents a texture to be used for rendering purposes, stored on the GPU (VRAM) More...
 
typedef u16 kstatic_mesh
 Represents a single static mesh, which contains geometry. More...
 
typedef struct font_glyph font_glyph
 
typedef struct font_kerning font_kerning
 
typedef struct font_page font_page
 
typedef u16 kaudio
 

Enumerations

enum  ktexture_type {
  KTEXTURE_TYPE_2D , KTEXTURE_TYPE_2D_ARRAY , KTEXTURE_TYPE_CUBE , KTEXTURE_TYPE_CUBE_ARRAY ,
  KTEXTURE_TYPE_COUNT
}
 Represents various types of textures. More...
 
enum  ktexture_flag {
  KTEXTURE_FLAG_HAS_TRANSPARENCY = 0x01 , KTEXTURE_FLAG_IS_WRITEABLE = 0x02 , KTEXTURE_FLAG_IS_WRAPPED = 0x04 , KTEXTURE_FLAG_DEPTH = 0x08 ,
  KTEXTURE_FLAG_STENCIL = 0x10 , KTEXTURE_FLAG_RENDERER_BUFFERING = 0x20
}
 

Functions

 ARRAY_TYPE (font_glyph)
 
 ARRAY_TYPE (font_kerning)
 
 ARRAY_TYPE (font_page)
 

Macro Definition Documentation

◆ INVALID_KAUDIO

#define INVALID_KAUDIO   INVALID_ID_U16

◆ INVALID_KSTATIC_MESH

#define INVALID_KSTATIC_MESH   INVALID_ID_U16

◆ INVALID_KTEXTURE

#define INVALID_KTEXTURE   INVALID_ID_U16

Typedef Documentation

◆ font_glyph

typedef struct font_glyph font_glyph

◆ font_kerning

typedef struct font_kerning font_kerning

◆ font_page

typedef struct font_page font_page

◆ kaudio

typedef u16 kaudio

Represents a Kohi Audio.

◆ kstatic_mesh

typedef u16 kstatic_mesh

Represents a single static mesh, which contains geometry.

◆ ktexture

typedef u16 ktexture

Represents a texture to be used for rendering purposes, stored on the GPU (VRAM)

◆ ktexture_flag

◆ ktexture_flag_bits

Holds bit flags for textures..

◆ ktexture_type

Represents various types of textures.

Enumeration Type Documentation

◆ ktexture_flag

Enumerator
KTEXTURE_FLAG_HAS_TRANSPARENCY 

Indicates if the texture has transparency.

KTEXTURE_FLAG_IS_WRITEABLE 

Indicates if the texture can be written (rendered) to.

KTEXTURE_FLAG_IS_WRAPPED 

Indicates if the texture was created via wrapping vs traditional creation.

KTEXTURE_FLAG_DEPTH 

Indicates the texture is a depth texture.

KTEXTURE_FLAG_STENCIL 

Indicates the texture is a stencil texture.

KTEXTURE_FLAG_RENDERER_BUFFERING 

Indicates that this texture should account for renderer buffering (i.e. double/triple buffering)

◆ ktexture_type

Represents various types of textures.

Enumerator
KTEXTURE_TYPE_2D 

A standard two-dimensional texture.

KTEXTURE_TYPE_2D_ARRAY 

A 2d array texture.

KTEXTURE_TYPE_CUBE 

A cube texture, used for cubemaps.

KTEXTURE_TYPE_CUBE_ARRAY 

A cube array texture, used for arrays of cubemaps.

KTEXTURE_TYPE_COUNT 

Function Documentation

◆ ARRAY_TYPE() [1/3]

ARRAY_TYPE ( font_glyph  )

◆ ARRAY_TYPE() [2/3]

ARRAY_TYPE ( font_kerning  )

◆ ARRAY_TYPE() [3/3]

ARRAY_TYPE ( font_page  )