Commit 2e892d66 authored by Ken Martin's avatar Ken Martin
Browse files

added buffer argument to GET/SET pixel data

parent 9dbca6b3
......@@ -68,8 +68,8 @@ public:
// Description:
// Set/Get the pixel data of an image, transmitted as RGBRGB...
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2);
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *);
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2,int front);
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *, int front);
};
#endif
......@@ -164,8 +164,8 @@ public:
// Description:
// Set/Get the pixel data of an image, transmitted as RGBRGB...
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2) = 0;
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *) = 0;
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2,int front) = 0;
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *,int front) = 0;
// Description:
// Set the number of frames for doing anti aliasing, default is zero.
......
......@@ -59,8 +59,8 @@ public:
// Description:
// Set/Get the pixel data of an image, transmitted as RGBRGB...
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2);
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *);
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2, int front);
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *, int front);
// Xwindow stuff
int GetDesiredDepth();
......
......@@ -26,6 +26,7 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
#include <X11/Xutil.h>
#include "Renderer.hh"
#include <xgl/xgl.h>
#include "XglrRenW.hh"
#define MAX_LIGHTS 12
......
......@@ -56,8 +56,8 @@ public:
// Description:
// Set/Get the pixel data of an image, transmitted as RGBRGB...
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2);
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *);
virtual unsigned char *GetPixelData(int x,int y,int x2,int y2,int front);
virtual void SetPixelData(int x,int y,int x2,int y2,unsigned char *, int front);
// Xwindow stuff
int GetDesiredDepth();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment