prosperon/source/engine/openglrender.h

55 lines
1.1 KiB
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef OPENGL_RENDER_H
#define OPENGL_RENDER_H
#include "render.h"
struct mCamera;
struct window;
2021-11-30 21:29:18 -06:00
2022-11-19 17:13:57 -06:00
extern struct shader *spriteShader;
extern struct shader *animSpriteShader;
2021-11-30 21:29:18 -06:00
extern struct sprite *tsprite;
2021-11-30 21:29:18 -06:00
extern int renderMode;
extern float editorClose;
extern float editorFar;
extern float gridScale;
extern float smallGridUnit;
extern float bigGridUnit;
extern float gridSmallThickness;
extern float gridBigThickness;
extern float gridBigColor[];
extern float gridSmallColor[];
extern float gridOpacity;
extern float editorFOV;
extern float shadowLookahead;
extern float plane_size;
extern float near_plane;
extern float far_plane;
extern char objectName[];
2022-02-06 10:14:57 -06:00
extern GLuint debugColorPickBO;
2021-11-30 21:29:18 -06:00
2022-11-19 17:13:57 -06:00
extern struct gameobject *selectedobject;
2021-11-30 21:29:18 -06:00
enum RenderMode {
LIT,
UNLIT,
WIREFRAME,
DIRSHADOWMAP,
OBJECTPICKER
};
2022-02-01 14:50:25 -06:00
void openglInit();
void openglRender(struct window *window);
2021-11-30 21:29:18 -06:00
void openglInit3d(struct window *window);
void openglRender3d(struct window *window, struct mCamera *camera);
2021-11-30 21:29:18 -06:00
void BindUniformBlock(GLuint shaderID, const char *bufferName,
GLuint bufferBind);
#endif