paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/draw draw.cpp,1.1.2.3,1.1.2.4


From: Teunis Peters <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/draw draw.cpp,1.1.2.3,1.1.2.4
Date: Wed, 26 Jun 2002 04:47:54 -0400

Update of /cvsroot/paragui/paragui/src/draw
In directory subversions:/tmp/cvs-serv7234/src/draw

Modified Files:
      Tag: devel-opengl
        draw.cpp 
Log Message:
Initial OpenGL drawable creation
added a simple OpenGL test based on 'list'
abstracted mouse management functions - solved "mouse cursor not moving" 
problem which was based on a zero-width and height mouse rectangle.


Index: draw.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/draw/Attic/draw.cpp,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -r1.1.2.3 -r1.1.2.4
*** draw.cpp    26 Jun 2002 03:25:04 -0000      1.1.2.3
--- draw.cpp    26 Jun 2002 08:47:51 -0000      1.1.2.4
***************
*** 242,247 ****
  PG_Draw::PG_DrawableSurface*
  PG_Draw::PG_Draw::CreateDrawableSurfaceFrom(void* pixels,
!                                  Uint32 flags,int width, int height, int 
depth=0, int pitch=0,
!                                  Uint32 Rmask=0, Uint32 Gmask=0, Uint32 
Bmask=0, Uint32 Amask=0) {
    // depth = Rmask = Gmask = Bmask = Amask = 0;
  #if 0
--- 242,247 ----
  PG_Draw::PG_DrawableSurface*
  PG_Draw::PG_Draw::CreateDrawableSurfaceFrom(void* pixels,
!                                           int width, int height, int depth=0, 
int pitch=0,
!                                           Uint32 Rmask=0, Uint32 Gmask=0, 
Uint32 Bmask=0, Uint32 Amask=0) {
    // depth = Rmask = Gmask = Bmask = Amask = 0;
  #if 0
***************
*** 271,275 ****
    PG_DrawableSurface* surf;
    SDL_Surface* t;
!   t = 
SDL_CreateRGBSurfaceFrom(pixels,flags,width,height,depth,Rmask,Gmask,Bmask,Amask);
    if (t == NULL) { PG_LogERR("SDL: %s", SDL_GetError()); exit(-1); }
    surf = new PG_DrawableSurface(t);
--- 271,275 ----
    PG_DrawableSurface* surf;
    SDL_Surface* t;
!   t = 
SDL_CreateRGBSurfaceFrom(pixels,width,height,depth,pitch,Rmask,Gmask,Bmask,Amask);
    if (t == NULL) { PG_LogERR("SDL: %s", SDL_GetError()); exit(-1); }
    surf = new PG_DrawableSurface(t);
***************
*** 329,330 ****
--- 329,353 ----
  #endif
  };
+ 
+ /* Mouse Pointer methods */
+ Uint8 PG_Draw::PG_Draw::GetMouseState(int *x, int *y){
+   return SDL_GetMouseState(x,y);
+ };
+ 
+ Uint8 PG_Draw::PG_Draw::GetRelativeMouseState(int *x, int *y) {
+   return SDL_GetRelativeMouseState(x,y);
+ };
+ 
+ void  PG_Draw::PG_Draw::WarpMouse(Uint16 x, Uint16 y) {
+   SDL_WarpMouse(x,y);
+ };
+ 
+ int PG_Draw::PG_Draw::ShowCursor(int toggle) {
+   return SDL_ShowCursor(toggle);
+ };
+ 
+ /* ParaGUI uses a different mouse cursor... */
+ /* SDL_Cursor * CreateCursor(Uint8 *data, Uint8 *mask, int w, int h, int 
hot_x, int hot_y); */
+ /* void SetCursor(SDL_Cursor *cursor); */
+ /* SDL_Cursor * GetCursor(void); */
+ /* void FreeCursor(SDL_Cursor *cursor); */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]