This commit is contained in:
NishiOwO 2025-04-08 07:16:15 +09:00
parent fcd4610f21
commit 089a687f36
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
4 changed files with 2 additions and 1570 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
*.zip *.zip
ext_* ext_*
*~ *~
aclocal.m4
config.log config.log
autom4te.cache autom4te.cache
config.status config.status

1563
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

View File

@ -124,7 +124,6 @@ void ne_draw_platform_create(ne_draw_t* draw) {
XMapWindow(draw->platform->display, draw->platform->window); XMapWindow(draw->platform->display, draw->platform->window);
glXMakeCurrent(draw->platform->display, draw->platform->window, draw->platform->context); glXMakeCurrent(draw->platform->display, draw->platform->window, draw->platform->context);
#if defined(GLX_EXT_swap_control)
if(ne_draw_platform_has_extension(draw, "GLX_EXT_swap_control")) { if(ne_draw_platform_has_extension(draw, "GLX_EXT_swap_control")) {
unsigned int tmp = -1; unsigned int tmp = -1;
PFNGLXSWAPINTERVALEXTPROC proc = (PFNGLXSWAPINTERVALEXTPROC)glXGetProcAddressARB("glXSwapIntervalEXT"); PFNGLXSWAPINTERVALEXTPROC proc = (PFNGLXSWAPINTERVALEXTPROC)glXGetProcAddressARB("glXSwapIntervalEXT");
@ -133,9 +132,7 @@ void ne_draw_platform_create(ne_draw_t* draw) {
} }
glXQueryDrawable(draw->platform->display, draw->platform->window, GLX_SWAP_INTERVAL_EXT, &tmp); glXQueryDrawable(draw->platform->display, draw->platform->window, GLX_SWAP_INTERVAL_EXT, &tmp);
interval = tmp; interval = tmp;
} else } else if(ne_draw_platform_has_extension(draw, "GLX_MESA_swap_control")) {
#endif
if(ne_draw_platform_has_extension(draw, "GLX_MESA_swap_control")) {
PFNGLXGETSWAPINTERVALMESAPROC proc = (PFNGLXGETSWAPINTERVALMESAPROC)glXGetProcAddressARB("glXGetSwapIntervalMESA"); PFNGLXGETSWAPINTERVALMESAPROC proc = (PFNGLXGETSWAPINTERVALMESAPROC)glXGetProcAddressARB("glXGetSwapIntervalMESA");
PFNGLXSWAPINTERVALMESAPROC proc2 = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddressARB("glXSwapIntervalMESA"); PFNGLXSWAPINTERVALMESAPROC proc2 = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddressARB("glXSwapIntervalMESA");
if(proc2 != NULL) { if(proc2 != NULL) {

View File

@ -10,9 +10,6 @@
ne_engine_t* engine; ne_engine_t* engine;
void draw_frame(ne_draw_t* draw) { void draw_frame(ne_draw_t* draw) {
ne_graphic_text(draw, 0, 0, 32, "test text", 255, 0, 0, 128);
ne_graphic_text(draw, 8, 8, 32, "test text", 0, 255, 0, 128);
ne_graphic_text(draw, 16, 16, 32, "test text", 0, 0, 255, 128);
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {