Reduce ogs-blue/ver-mac to blue background #6
No files matched your search
@@ -1,8 +1,7 @@
|
|||||||
#include "raybri.h"
|
#include "raybri.h"
|
||||||
|
#include "raybriAux.h"
|
||||||
#include "raybriConst.h"
|
#include "raybriConst.h"
|
||||||
#include "rlgl.h"
|
#include "rlgl.h"
|
||||||
#include <dlfcn.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
static int sr_width = 1;
|
static int sr_width = 1;
|
||||||
static int sr_height = 1;
|
static int sr_height = 1;
|
||||||
@@ -10,7 +9,7 @@ static int sr_ready = 0;
|
|||||||
|
|
||||||
void raybri_init(void) {
|
void raybri_init(void) {
|
||||||
//SetTraceLogLevel(LOG_WARNING);
|
//SetTraceLogLevel(LOG_WARNING);
|
||||||
rlLoadExtensions((void *)raybri_gl_loader);
|
rlLoadExtensions((void *)raybriGLLoader);
|
||||||
// Init with default 1x1 size
|
// Init with default 1x1 size
|
||||||
rlglInit(1, 1);
|
rlglInit(1, 1);
|
||||||
rlClearColor(0, 0, 255, 255);
|
rlClearColor(0, 0, 255, 255);
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
|
#include <dlfcn.h>
|
||||||
#include "raybriAux.h"
|
#include "raybriAux.h"
|
||||||
#include "raybriConst.h"
|
#include "raybriConst.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
// raylib is built as a static/dynamic library with GLFW baked in, but we never
|
// raylib is built as a static/dynamic library with GLFW baked in, but we never
|
||||||
// call InitWindow(). Instead we render into an OpenGL context owned by the
|
// call InitWindow(). Instead we render into an OpenGL context owned by the
|
||||||
// macOS app, so we must supply the OpenGL entry point loader ourselves.
|
// macOS app, so we must supply the OpenGL entry point loader ourselves.
|
||||||
void *raybri_gl_loader(const char *name) {
|
void *raybriGLLoader(const char *name) {
|
||||||
static void *handle = NULL;
|
static void *handle = NULL;
|
||||||
|
|
||||||
if (handle == NULL) {
|
if (handle == NULL) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ifndef RAYBRI_AUX_H
|
#ifndef RAYBRI_AUX_H
|
||||||
#define RAYBRI_AUX_H
|
#define RAYBRI_AUX_H
|
||||||
|
|
||||||
void *raybri_gl_loader(const char *name);
|
void *raybriGLLoader(const char *name);
|
||||||
|
|
||||||
#endif // RAYBRI_AUX_H
|
#endif // RAYBRI_AUX_H
|
||||||
Reference in new issue
Block a user