HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IMG_TileBuffer.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: IMG_TileBuffer.h ( IMG Library, C++)
7  *
8  * COMMENTS: Defines a base class for the random access tile devices.
9  */
10 
11 #ifndef __IMG_TileBuffer__
12 #define __IMG_TileBuffer__
13 
14 #include "IMG_API.h"
15 class IMG_Raster;
16 
18 public:
20  virtual ~IMG_TileBuffer() {}
21 
22  virtual int getTileWidth() const = 0;
23  virtual int getTileHeight() const = 0;
24 
25  virtual void setQuitFlag(int val=1) = 0;
26  virtual int getQuitFlag() const = 0;
27 
28  virtual void setMouseXY(int x, int y) = 0;
29  virtual void getMouseXY(int &x, int &y) const = 0;
30 
31  // Semaphore mechanism for safe tile read/write
32  virtual int canWriteTile() const = 0;
33  virtual int canReadTile() const = 0;
34 
35  virtual void writeTile(int xl, int xr, int yb, int yt,
36  const void *data) = 0;
37 
38  // If coordinates are passed in, they will be filled with:
39  // coords[0] = xl, coords[1] = xr;
40  // coords[2] = yb, coords[3] = yt;
41  virtual void readTile(IMG_Raster &rp, int *coords=0) = 0;
42  virtual void getKeyString(char *str) = 0;
43 
44 protected:
45  virtual void setTileSize(int w, int h) = 0;
46 };
47 
48 #endif
49 
virtual ~IMG_TileBuffer()
GLint y
Definition: glcorearb.h:102
#define IMG_API
Definition: IMG_API.h:10
GLboolean * data
Definition: glcorearb.h:130
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2001
GLint GLenum GLint x
Definition: glcorearb.h:408
GLuint GLfloat * val
Definition: glcorearb.h:1607
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:856