You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
522 B

#ifndef IMAGECOMPONENT_H
#define IMAGECOMPONENT_H
#include <GL/glew.h>
#include "BoxComponent.h"
class ImageComponent : public BoxComponent {
public:
ImageComponent(std::string filename, const float rawX, const float rawY, const float rawWidth, const float rawHeight, const int passedWindowWidth, const int passedWindowHeight);
void resize(const int passedWindowWidth, const int passedWindowHeight);
// FIXME: dynamically allocate this
// Soon. -despair
unsigned char data[1024][1024][4];
};
#endif