paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/include pgdraw.h,1.4.2.9,1.4.2.10 pggldraw.h,


From: Teunis Peters <address@hidden>
Subject: [paragui-cvs] CVS: paragui/include pgdraw.h,1.4.2.9,1.4.2.10 pggldraw.h,1.1.2.7,1.1.2.8
Date: Fri, 08 Nov 2002 06:22:03 -0500

Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv13762/include

Modified Files:
      Tag: devel-opengl
        pgdraw.h pggldraw.h 
Log Message:
Add in greyscale and bitmap images (still largely untested)
also now pango future plugin now renders... :)


Index: pgdraw.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgdraw.h,v
retrieving revision 1.4.2.9
retrieving revision 1.4.2.10
diff -C2 -r1.4.2.9 -r1.4.2.10
*** pgdraw.h    4 Nov 2002 10:58:32 -0000       1.4.2.9
--- pgdraw.h    8 Nov 2002 11:22:01 -0000       1.4.2.10
***************
*** 417,420 ****
--- 417,453 ----
  
        /**
+       Create a bitmap (1/0)
+       This is mostly used in fonts...
+       */
+       virtual PG_DrawableSurface* CreateBitmap(int width, int height);
+ 
+       /**
+       Create a grey surface (256 shades of grey) (or it could be interpreted
+       as another colour channel but since this is what the engine uses
+       internally...  (actually by default, creates a standard 256-colour
+       palette surface and sets the palette to greys)
+       Some drivers may have a special-purpose greyscale buffer (such as 
OpenGL)
+ 
+       This is mostly used in fonts...
+       == CreateDrawableSurface(SDL_SWSURFACE,width,height,8,0,0,0,0);
+       */
+       virtual PG_DrawableSurface* CreateGrey(int width, int height);
+ 
+       /**
+       Create a grey surface (256 shades of grey) (or it could be interpreted
+       as another colour channel but since this is what the engine uses
+       internally...
+       This one's a little trickier as it's create with only red and alpha
+       channels...
+       Some drivers may have a special-purpose greyscale buffer (such as 
OpenGL)
+       .. actually the concept of this surface came from OpenGL
+       this uses platform-native AL where high byte=alpha, low 
byte=luminescence
+ 
+       Also has an alpha channel.
+       == CreateDrawableSurface(SDL_SWSURFACE,width,height,16,0xff,0,0,0xff00);
+       */
+       virtual PG_DrawableSurface* CreateGreyAlpha(int width, int height);
+ 
+       /**
        Same as per CreateDrawableSurface except initialize from a set of 
pixels;
        pitch defaults to width*depth.

Index: pggldraw.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/Attic/pggldraw.h,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -C2 -r1.1.2.7 -r1.1.2.8
*** pggldraw.h  4 Nov 2002 10:58:32 -0000       1.1.2.7
--- pggldraw.h  8 Nov 2002 11:22:01 -0000       1.1.2.8
***************
*** 162,165 ****
--- 162,166 ----
     PG_GLDraw* host;
     int scale;
+    bool isgrey;
  };
  
***************
*** 257,260 ****
--- 258,264 ----
    PG_DrawableSurface* CreateDrawableSurface(int width, int height);
    PG_DrawableSurface* CreateDrawableSurfaceAlpha(int width, int height);
+   PG_DrawableSurface* CreateBitmap(int width, int height);
+   PG_DrawableSurface* CreateGrey(int width, int height);
+   PG_DrawableSurface* CreateGreyAlpha(int width, int height);
    PG_DrawableSurface*
      CreateDrawableSurfaceFrom(void* pixels,





reply via email to

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