raybri mac
This commit is contained in:
1 parent
1c841a18bb
commit
21605f98b4
5 files changed
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#include "raybri.h"
|
||||
#include "raybriAux.h"
|
||||
#include "rlgl.h"
|
||||
|
||||
void raybriInit(void) {
|
||||
//SetTraceLogLevel(LOG_WARNING);
|
||||
|
||||
// Load OpenGL extensions
|
||||
rlLoadExtensions((void *)raybriGLLoader);
|
||||
// Initialize raylib graphics layer with a placeholder 1x1 framebuffer size
|
||||
// Graphics layer includes default texture, shader, render batch and OpenGL state
|
||||
rlglInit(1, 1);
|
||||
// Background is painted in blue
|
||||
rlClearColor(0, 0, 255, 255);
|
||||
}
|
||||
|
||||
void raybriRender(int width, int height) {
|
||||
// Set the drawing area to the current pixel size
|
||||
rlViewport(0, 0, width, height);
|
||||
// Clear color and depth buffers for the next frame
|
||||
rlClearScreenBuffers();
|
||||
// Draw any queued geometry
|
||||
rlDrawRenderBatchActive();
|
||||
}
|
||||
|
||||
void raybriShutdown(void) {
|
||||
// Release rlgl buffers, shaders and textures
|
||||
rlglClose();
|
||||
}
|
||||
Reference in new issue
Block a user