no ready in c
This commit is contained in:
1 parent
804385cc28
commit
080b03fcf8
1 file changed
-13
@@ -3,8 +3,6 @@
|
|||||||
#include "raybriConst.h"
|
#include "raybriConst.h"
|
||||||
#include "rlgl.h"
|
#include "rlgl.h"
|
||||||
|
|
||||||
static int sr_ready = 0;
|
|
||||||
|
|
||||||
void raybriInit(void) {
|
void raybriInit(void) {
|
||||||
//SetTraceLogLevel(LOG_WARNING);
|
//SetTraceLogLevel(LOG_WARNING);
|
||||||
|
|
||||||
@@ -14,15 +12,9 @@ void raybriInit(void) {
|
|||||||
rlglInit(1, 1);
|
rlglInit(1, 1);
|
||||||
// Background is painted in blue
|
// Background is painted in blue
|
||||||
rlClearColor(0, 0, 255, 255);
|
rlClearColor(0, 0, 255, 255);
|
||||||
|
|
||||||
sr_ready = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void raybriRender(int width, int height) {
|
void raybriRender(int width, int height) {
|
||||||
if (!sr_ready) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
rlViewport(0, 0, width, height);
|
rlViewport(0, 0, width, height);
|
||||||
rlClearScreenBuffers();
|
rlClearScreenBuffers();
|
||||||
rlDrawRenderBatchActive();
|
rlDrawRenderBatchActive();
|
||||||
@@ -30,10 +22,5 @@ void raybriRender(int width, int height) {
|
|||||||
|
|
||||||
void raybriShutdown(void)
|
void raybriShutdown(void)
|
||||||
{
|
{
|
||||||
if (!sr_ready) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
sr_ready = 0;
|
|
||||||
|
|
||||||
rlglClose();
|
rlglClose();
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user