nighteagle
Still Fresh
- Joined
- Dec 2, 2015
- Messages
- 32
Cool...
Is this on the other Branch different?
Is this on the other Branch different?
https://github.com/lunixbochs/glshim/blob/unstable/src/gl/loader.c#L69
Honestly you should copy my whole loader.c and loader.h
[ 3%] Building C object src/CMakeFiles/GL.dir/glx/glx.c.o
/home/pi/glshim/src/glx/glx.c:196:7: error: conflicting types for ‘open_lib’
void *open_lib(const char **names) {
^
In file included from /home/pi/glshim/src/glx/../gl/gl.h:87:0,
from /home/pi/glshim/src/glx/glx.h:11,
from /home/pi/glshim/src/glx/glx.c:15:
/home/pi/glshim/src/glx/../gl/loader.h:14:14: note: previous declaration of ‘open_lib’ was here
extern void *open_lib(const char **names, const char *override);
^
/home/pi/glshim/src/glx/glx.c: In function ‘glXMakeCurrent’:
/home/pi/glshim/src/glx/glx.c:749:102: warning: passing argument 3 of ‘egl_eglCreateWindowSurface’ makes pointer from integer without a cast
eglSurface = context->eglSurface = egl_eglCreateWindowSurface(eglDisplay, context->eglConfigs[0], drawable, NULL);
^
/home/pi/glshim/src/glx/glx.c:749:102: note: expected ‘EGLNativeWindowType’ but argument is of type ‘GLXDrawable’
/home/pi/glshim/src/glx/glx.c:753:80: warning: passing argument 3 of ‘egl_eglCreateWindowSurface’ makes pointer from integer without a cast
eglSurface = egl_eglCreateWindowSurface(eglDisplay, eglConfigs[0], drawable, NULL); // create surface only if needed
^
/home/pi/glshim/src/glx/glx.c:753:80: note: expected ‘EGLNativeWindowType’ but argument is of type ‘GLXDrawable’
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/EGL/eglplatform.h:110,
from /opt/vc/include/EGL/egl.h:36,
from /home/pi/glshim/src/glx/glx.h:1,
from /home/pi/glshim/src/glx/glx.c:15:
/home/pi/glshim/src/glx/glx.c: At top level:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined
void vcos_timer_delete(VCOS_TIMER_T *timer);
^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined
void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined
void vcos_timer_cancel(VCOS_TIMER_T *timer);
^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined
void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined
VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/EGL/eglplatform.h:110,
from /opt/vc/include/EGL/egl.h:36,
from /home/pi/glshim/src/glx/glx.h:1,
from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined
void vcos_thread_resume(VCOS_THREAD_T *thread);
^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined
int vcos_thread_running(VCOS_THREAD_T *thread);
^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined
VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined
void vcos_thread_relinquish(void);
^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined
VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
^
In file included from /opt/vc/include/interface/vcos/vcos.h:185:0,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/EGL/eglplatform.h:110,
from /opt/vc/include/EGL/egl.h:36,
from /home/pi/glshim/src/glx/glx.h:1,
from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared but never defined
void vcos_timer_delete(VCOS_TIMER_T *timer);
^
/opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared but never defined
void vcos_timer_reset(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
^
/opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared but never defined
void vcos_timer_cancel(VCOS_TIMER_T *timer);
^
/opt/vc/include/interface/vcos/vcos_timer.h:95:6: warning: inline function ‘vcos_timer_set’ declared but never defined
void vcos_timer_set(VCOS_TIMER_T *timer, VCOS_UNSIGNED delay);
^
/opt/vc/include/interface/vcos/vcos_timer.h:80:15: warning: inline function ‘vcos_timer_create’ declared but never defined
VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
^
In file included from /opt/vc/include/interface/vcos/vcos.h:127:0,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/EGL/eglplatform.h:110,
from /opt/vc/include/EGL/egl.h:36,
from /home/pi/glshim/src/glx/glx.h:1,
from /home/pi/glshim/src/glx/glx.c:15:
/opt/vc/include/interface/vcos/vcos_thread.h:269:6: warning: inline function ‘vcos_thread_resume’ declared but never defined
void vcos_thread_resume(VCOS_THREAD_T *thread);
^
/opt/vc/include/interface/vcos/vcos_thread.h:262:5: warning: inline function ‘vcos_thread_running’ declared but never defined
int vcos_thread_running(VCOS_THREAD_T *thread);
^
/opt/vc/include/interface/vcos/vcos_thread.h:251:15: warning: inline function ‘vcos_change_preemption’ declared but never defined
VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
^
/opt/vc/include/interface/vcos/vcos_thread.h:234:6: warning: inline function ‘vcos_thread_relinquish’ declared but never defined
void vcos_thread_relinquish(void);
^
/opt/vc/include/interface/vcos/vcos_thread.h:186:15: warning: inline function ‘vcos_thread_get_affinity’ declared but never defined
VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
^
src/CMakeFiles/GL.dir/build.make:606: recipe for target 'src/CMakeFiles/GL.dir/glx/glx.c.o' failed
make[3]: *** [src/CMakeFiles/GL.dir/glx/glx.c.o] Error 1
CMakeFiles/Makefile2:79: recipe for target 'src/CMakeFiles/GL.dir/all' failed
make[2]: *** [src/CMakeFiles/GL.dir/all] Error 2
CMakeFiles/Makefile2:91: recipe for target 'src/CMakeFiles/GL.dir/rule' failed
make[1]: *** [src/CMakeFiles/GL.dir/rule] Error 2
Makefile:110: recipe for target 'GL' failed
make: *** [GL] Error 2
pi@raspberrypi ~/glshim $
ptitseb: do you do the same batched rendering for bitmaps as me? that (or streaming textures, or an automatic atlas texture) is the only way you'll get any performance out of a font renderer that calls glBitmap for individual glyphs.