[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/include pggldraw.h,NONE,1.1.2.1 Makefile.am,1
From: |
Teunis Peters <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/include pggldraw.h,NONE,1.1.2.1 Makefile.am,1.6.2.1,1.6.2.2 pgdraw.h,1.4.2.2,1.4.2.3 |
Date: |
Wed, 26 Jun 2002 04:47:53 -0400 |
Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv7234/include
Modified Files:
Tag: devel-opengl
Makefile.am pgdraw.h
Added Files:
Tag: devel-opengl
pggldraw.h
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.
***** Error reading new file: [Errno 2] No such file or directory: 'pggldraw.h'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/paragui/paragui/include/Makefile.am,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -C2 -r1.6.2.1 -r1.6.2.2
*** Makefile.am 26 Jun 2002 03:25:03 -0000 1.6.2.1
--- Makefile.am 26 Jun 2002 08:47:51 -0000 1.6.2.2
***************
*** 54,58 ****
pgnotebook.h \
pgfilelist.h \
! pgsingleton.h
EXTRA_DIST = \
--- 54,59 ----
pgnotebook.h \
pgfilelist.h \
! pgsingleton.h \
! pggldraw.h
EXTRA_DIST = \
Index: pgdraw.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgdraw.h,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -C2 -r1.4.2.2 -r1.4.2.3
*** pgdraw.h 26 Jun 2002 03:25:03 -0000 1.4.2.2
--- pgdraw.h 26 Jun 2002 08:47:51 -0000 1.4.2.3
***************
*** 64,67 ****
--- 64,69 ----
virtual SDL_Surface* getScreen();
+ virtual Uint32 getWidth();
+ virtual Uint32 getHeight();
/**
***************
*** 313,317 ****
virtual PG_DrawableSurface*
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);
--- 315,319 ----
virtual PG_DrawableSurface*
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);
***************
*** 355,358 ****
--- 357,374 ----
virtual PG_DrawableSurface* GetVideoSurface();
+ /* Mouse Pointer methods */
+ /* In a lot of ways while control of display of mouse belongs here,
+ * this isn't the best place for managing mouse state. Ah well...
+ */
+ virtual Uint8 GetMouseState(int *x, int *y);
+ virtual Uint8 GetRelativeMouseState(int *x, int *y);
+ virtual void WarpMouse(Uint16 x, Uint16 y);
+ /* 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); */
+ int ShowCursor(int toggle);
+
protected:
Uint32 flags;
***************
*** 368,371 ****
--- 384,390 ----
return ref;
};
+
+ inline Uint32 PG_DrawableSurface::getWidth() { return ref->w; };
+ inline Uint32 PG_DrawableSurface::getHeight() { return ref->h; };
inline PG_DrawableSurface*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/include pggldraw.h,NONE,1.1.2.1 Makefile.am,1.6.2.1,1.6.2.2 pgdraw.h,1.4.2.2,1.4.2.3,
Teunis Peters <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.10.2.2,1.10.2.3
- Next by Date:
[paragui-cvs] CVS: paragui/src/widgets pgscrollbar.cpp,1.6,1.6.2.1 pgwidget.cpp,1.13.2.1,1.13.2.2 pgwidgetdnd.cpp,1.3.2.1,1.3.2.2
- Previous by thread:
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.10.2.2,1.10.2.3
- Next by thread:
[paragui-cvs] CVS: paragui/src/widgets pgscrollbar.cpp,1.6,1.6.2.1 pgwidget.cpp,1.13.2.1,1.13.2.2 pgwidgetdnd.cpp,1.3.2.1,1.3.2.2
- Index(es):