[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/draw draw.cpp,1.1.2.13,1.1.2.14 gradient.
From: |
Teunis Peters <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/draw draw.cpp,1.1.2.13,1.1.2.14 gradient.cpp,1.3.2.4,1.3.2.5 |
Date: |
Sat, 09 Nov 2002 07:00:38 -0500 |
Update of /cvsroot/paragui/paragui/src/draw
In directory subversions:/tmp/cvs-serv20544/src/draw
Modified Files:
Tag: devel-opengl
draw.cpp gradient.cpp
Log Message:
Working OpenGL
still needs additional repairs to get textures looking right, but so far so
good :)
Index: draw.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/draw/Attic/draw.cpp,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -C2 -r1.1.2.13 -r1.1.2.14
*** draw.cpp 8 Nov 2002 11:22:01 -0000 1.1.2.13
--- draw.cpp 9 Nov 2002 12:00:35 -0000 1.1.2.14
***************
*** 193,197 ****
/* flags |= SDL_OPENGL; -- handled internally */
// flags = flags | SDL_GLSDL;
! fprintf(stderr, "%s:%s:%i set %ix%ix%i [%x]\n", __FILE__, __FUNCTION__,
__LINE__, width,height,depth,flags);
// dumpflags(flags);
t = SDL_SetVideoMode(width,height,depth,flags);
--- 193,197 ----
/* flags |= SDL_OPENGL; -- handled internally */
// flags = flags | SDL_GLSDL;
! // fprintf(stderr, "%s:%s:%i set %ix%ix%i [%x]\n", __FILE__, __FUNCTION__,
__LINE__, width,height,depth,flags);
// dumpflags(flags);
t = SDL_SetVideoMode(width,height,depth,flags);
***************
*** 294,297 ****
--- 294,298 ----
PG_Draw::PG_DrawableSurface* PG_Draw::PG_Draw::CreateDrawableSurface(int
width, int height) {
// fprintf(stderr, "%s:%s:%i %i,%i\n", __FILE__, __FUNCTION__, __LINE__,
width, height);
+ // PG_LogMSG("%s[%s:%i]", __FUNCTION__, __FILE__, __LINE__);
#if 1
PG_DrawableSurface* surf;
***************
*** 309,312 ****
--- 310,314 ----
return surf;
#else
+ // PG_LogDBG("ParaGUI[%s]: %s:%i", __FILE__, __FUNCTION__, __LINE__);
return CreateDrawableSurface(SDL_SWSURFACE, width, height);
#endif
***************
*** 340,343 ****
--- 342,346 ----
return surf;
#endif
+ // PG_LogDBG("ParaGUI[%s]: %s:%i", __FILE__, __FUNCTION__, __LINE__);
return CreateDrawableSurface(width, height);
};
***************
*** 370,373 ****
--- 373,377 ----
PG_Draw::PG_DrawableSurface* PG_Draw::PG_Draw::CreateGrey(int width, int
height) {
PG_DrawableSurface* surf;
+ // PG_LogDBG("ParaGUI[%s]: %s:%i", __FILE__, __FUNCTION__, __LINE__);
surf = CreateDrawableSurface(SDL_SWSURFACE,width,height,8,0,0,0,0);
if (surf == NULL) return NULL;
***************
*** 385,388 ****
--- 389,393 ----
PG_DrawableSurface* surf;
/* checking SDL - this looks like it will work... */
+ // PG_LogDBG("ParaGUI[%s]: %s:%i", __FILE__, __FUNCTION__, __LINE__);
surf =
CreateDrawableSurface(SDL_SWSURFACE,width,height,16,0xff,0x00,0x00,0xff00);
if (surf == NULL) return NULL;
***************
*** 446,449 ****
--- 451,455 ----
PG_Draw::PG_DrawableSurface*
PG_Draw::PG_Draw::AccelDrawableSurface(SDL_Surface* src, bool hasalpha) {
PG_DrawableSurface* surf;
+ // PG_LogMSG("%s[%s:%i]", __FUNCTION__, __FILE__, __LINE__);
SDL_Surface* t;
if (hasalpha) {
Index: gradient.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/draw/gradient.cpp,v
retrieving revision 1.3.2.4
retrieving revision 1.3.2.5
diff -C2 -r1.3.2.4 -r1.3.2.5
*** gradient.cpp 31 Oct 2002 19:22:17 -0000 1.3.2.4
--- gradient.cpp 9 Nov 2002 12:00:35 -0000 1.3.2.5
***************
*** 53,56 ****
--- 53,57 ----
#endif
PG_Draw* draw = PG_Draw::GetDefaultDrawable();
+ PG_LogDBG("ParaGUI[%s]: %s:%i", __FILE__, __FUNCTION__, __LINE__);
PG_DrawableSurface *grd = draw->CreateDrawableSurface(r.w, r.h);
// CreateRGBSurface(r.w, r.h);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/draw draw.cpp,1.1.2.13,1.1.2.14 gradient.cpp,1.3.2.4,1.3.2.5,
Teunis Peters <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/plugins/pango TODO,NONE,1.1.2.1
- Next by Date:
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.10.2.14,1.10.2.15 pgfilearchive.cpp,1.4.2.7,1.4.2.8
- Previous by thread:
[paragui-cvs] CVS: paragui/plugins/pango TODO,NONE,1.1.2.1
- Next by thread:
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.10.2.14,1.10.2.15 pgfilearchive.cpp,1.4.2.7,1.4.2.8
- Index(es):