NEX_SDR_PIXEL
};
+enum nex_tex_type {
+ NEX_TEX1D,
+ NEX_TEX2D,
+ NEX_TEX3D,
+ NEX_TEXCUBE
+};
+
+enum nex_cube_face {
+ NEX_CUBE_PX, NEX_CUBE_NX,
+ NEX_CUBE_PY, NEX_CUBE_NY,
+ NEX_CUBE_PZ, NEX_CUBE_NZ
+};
+
typedef struct nex_buffer nex_buffer;
typedef struct nex_geometry nex_geometry;
typedef struct nex_shader nex_shader;
typedef struct nex_sdrprog nex_sdrprog;
+typedef struct nex_texture nex_texture;
void nex_clear(void);
void nex_clearcolor(float r, float g, float b);
nex_shader *nex_load_shader(const char *path, enum nex_sdr_type type);
nex_sdrprog *nex_load_sdrprog(const char *vpath, const char *ppath);
+/* --- textures --- */
+nex_texture *nex_alloc_texture(enum nex_tex_type type);
+void nex_free_texture(nex_texture *tex);
+
#endif /* NEXUS3D_GFX_H_ */