70 |
vector<GLuint> data; |
vector<GLuint> data; |
71 |
public: |
public: |
72 |
RGBARaster(int w, int h, vector<GLuint> &data0) : |
RGBARaster(int w, int h, vector<GLuint> &data0) : |
73 |
width(w), height(h), data(data) { |
width(w), height(h), data(data0) { |
74 |
} |
} |
75 |
int getWidth() { return width; } |
int getWidth() { return width; } |
76 |
int getHeight() { return height; } |
int getHeight() { return height; } |
88 |
GLenum getGLType() { |
GLenum getGLType() { |
89 |
return GL_UNSIGNED_BYTE; |
return GL_UNSIGNED_BYTE; |
90 |
} |
} |
91 |
|
const vector<GLuint> &getData() { return data; } |
92 |
void *getPointer() { |
void *getPointer() { |
93 |
return &(data[0]); |
return &(data[0]); |
94 |
} |
} |