Changeset 72970
- Timestamp:
- Jul 10, 2018, 9:39:54 AM (6 years ago)
- Location:
- grass/trunk
- Files:
-
- 7 edited
-
include/defs/ogsf.h (modified) (1 diff)
-
lib/nviz/render.c (modified) (2 diffs)
-
lib/ogsf/gs2.c (modified) (1 diff)
-
lib/ogsf/gsd_prim.c (modified) (2 diffs)
-
lib/ogsf/gsx.c (modified) (2 diffs)
-
lib/ogsf/ogsflib.dox (modified) (1 diff)
-
misc/m.nviz.image/main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/include/defs/ogsf.h
r61305 r72970 186 186 void GS_set_cancel(int); 187 187 void GS_set_cxl_func(void (*)(void)); 188 void GS_set_swap_func(void (*)(void));189 188 190 189 /* GS_util.c */ -
grass/trunk/lib/nviz/render.c
r72968 r72970 101 101 int attributeList[] = { GLX_RGBA, GLX_RED_SIZE, 1, 102 102 GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, 103 GLX_DEPTH_SIZE, 1, None103 GLX_DEPTH_SIZE, 1, GLX_DOUBLEBUFFER, None 104 104 }; 105 105 XVisualInfo *v; … … 136 136 int attributeList[] = { AGL_RGBA, AGL_RED_SIZE, 1, 137 137 AGL_GREEN_SIZE, 1, AGL_BLUE_SIZE, 1, 138 AGL_DEPTH_SIZE, 1, AGL_ NONE138 AGL_DEPTH_SIZE, 1, AGL_DOUBLEBUFFER, AGL_NONE 139 139 }; 140 140 /* TODO: open mac display */ -
grass/trunk/lib/ogsf/gs2.c
r65575 r72970 120 120 121 121 Cxl_func = void_func; 122 Swap_func = void_func;123 122 124 123 -
grass/trunk/lib/ogsf/gsd_prim.c
r72967 r72970 22 22 #include <grass/config.h> 23 23 24 #if defined(OPENGL_X11) || defined(OPENGL_WINDOWS)24 #if defined(OPENGL_X11) 25 25 #include <GL/gl.h> 26 26 #include <GL/glu.h> 27 #include <GL/glx.h> 27 28 #elif defined(OPENGL_AQUA) 28 29 #include <OpenGL/gl.h> 29 30 #include <OpenGL/glu.h> 31 #include <AGL/agl.h> 32 #elif defined(OPENGL_WINDOWS) 33 #include <GL/gl.h> 34 #include <GL/glu.h> 35 #include <wingdi.h> 30 36 #endif 31 37 … … 477 483 glXSwapBuffers(*display, window); 478 484 replace display and window */ 479 480 Swap_func(); 485 #if defined(OPENGL_X11) 486 glXSwapBuffers(glXGetCurrentDisplay(), glXGetCurrentDrawable()); 487 #elif defined(OPENGL_AQUA) 488 aglSwapBuffers(aglGetCurrentContext()); 489 #elif defined(OPENGL_WINDOWS) 490 SwapBuffers(wglGetCurrentDC()); 491 #endif 481 492 482 493 return; -
grass/trunk/lib/ogsf/gsx.c
r62519 r72970 20 20 21 21 void (*Cxl_func) (); 22 void (*Swap_func) ();23 22 24 23 static int Cxl = 0; … … 57 56 return; 58 57 } 59 60 /*!61 \brief Set swap function62 63 \param pointer to function64 */65 void GS_set_swap_func(void (*f) (void))66 {67 Swap_func = f;68 69 return;70 } -
grass/trunk/lib/ogsf/ogsflib.dox
r62519 r72970 312 312 - GS_set_SDsurf() 313 313 314 - GS_set_swap_func()315 316 314 - GS_set_trans() 317 315 -
grass/trunk/misc/m.nviz.image/main.c
r72948 r72970 27 27 #include "local_proto.h" 28 28 29 static void swap_gl();30 31 29 int main(int argc, char *argv[]) 32 30 { … … 74 72 GS_libinit(); 75 73 GVL_libinit(); 76 77 GS_set_swap_func(swap_gl);78 74 79 75 /* define render window */ … … 252 248 exit(EXIT_SUCCESS); 253 249 } 254 255 void swap_gl()256 {257 return;258 }
Note:
See TracChangeset
for help on using the changeset viewer.
