Fixed errors
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
screen_t SCREEN;
|
||||
|
||||
void screenInit() {
|
||||
errorret_t screenInit() {
|
||||
memoryZero(&SCREEN, sizeof(screen_t));
|
||||
|
||||
SCREEN.background = COLOR_CORNFLOWER_BLUE;
|
||||
@@ -27,24 +27,25 @@ void screenInit() {
|
||||
SCREEN.framebufferCamera._2d.position[1] = 0;
|
||||
SCREEN.framebufferCamera._2d.zoom = 1.0f;
|
||||
|
||||
quadBuffer(
|
||||
errorChain(quadBuffer(
|
||||
SCREEN.frameBufferMeshVertices,
|
||||
0.0f, 0.0f,
|
||||
1.0f, 1.0f,
|
||||
COLOR_WHITE,
|
||||
0.0f, 0.0f,
|
||||
1.0f, 1.0f
|
||||
);
|
||||
meshInit(
|
||||
));
|
||||
errorChain(meshInit(
|
||||
&SCREEN.frameBufferMesh,
|
||||
QUAD_PRIMITIVE_TYPE,
|
||||
QUAD_VERTEX_COUNT,
|
||||
SCREEN.frameBufferMeshVertices
|
||||
);
|
||||
));
|
||||
#endif
|
||||
|
||||
// Init screen to backbuffer mode by default
|
||||
screenBind();
|
||||
errorOk();
|
||||
}
|
||||
|
||||
void screenBind() {
|
||||
|
||||
Reference in New Issue
Block a user