assaultfish/engine/include/GearBox/GL.h

39 lines
943 B
C
Raw Normal View History

2026-01-09 06:12:57 +09:00
#ifndef __GEARBOX_GL_H__
#define __GEARBOX_GL_H__
#include <GearBox/MachDep.h>
#include <GearBox/TypeDefs.h>
#include <GearBox/GL/GL.h>
#ifdef __cplusplus
extern "C" {
#endif
/* gl_shader.c */
2026-01-10 19:51:48 +09:00
GBDECL int GBGLShaderPrepare(GBGL gl, GLuint* shader, const char* vs, const char* fs);
/* gl_texture.c */
GBDECL int GBGLTexturePrepare(GBGL gl, GLuint* texture, unsigned char* rgba, int width, int height);
/* gl_shadow.c */
GBDECL void GBGLShadowInit(GBGL gl);
2026-01-11 18:27:41 +09:00
GBDECL int GBGLShadowBeforeMapping(GBGL gl);
2026-01-11 01:36:32 +09:00
GBDECL void GBGLShadowAfterMapping(GBGL gl);
GBDECL void GBGLShadowEnd(GBGL gl);
2026-01-11 18:27:41 +09:00
GBDECL void GBGLShadowDeinit(GBGL gl);
2026-01-10 19:51:48 +09:00
/* gl.c */
GBDECL GBGL GBGLCreate(GBClient client);
GBDECL void GBGLDestroy(GBGL gl);
2026-01-09 06:12:57 +09:00
2026-01-11 01:36:32 +09:00
/* gl_camera.c */
GBDECL void GBGLPerspective(GBGL gl, double width, double height);
GBDECL void GBGLSetCamera(GBGL gl);
GBDECL void GBGLLookAt(GBGL gl, GBVector3 camera, GBVector3 look_at);
2026-01-09 06:12:57 +09:00
#ifdef __cplusplus
}
#endif
#endif