source:
orxonox.OLD/trunk/src/lib/gui/gl/glgui_image.h
@
8417
Last change on this file since 8417 was 8145, checked in by bensch, 19 years ago | |
---|---|
File size: 794 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5366] | 2 | * @file glgui_image.h |
3 | * The gl_Image widget of th openglGUI | |
[5360] | 4 | * |
5 | */ | |
[1853] | 6 | |
[5366] | 7 | #ifndef _GLGUI_IMAGE_H |
8 | #define _GLGUI_IMAGE_H | |
[1853] | 9 | |
[8035] | 10 | #include "glgui_widget.h" |
[1853] | 11 | |
[4838] | 12 | // FORWARD DECLARATION |
[5392] | 13 | struct SDL_Surface; |
[7779] | 14 | namespace OrxGui |
15 | { | |
[3543] | 16 | |
[7779] | 17 | //! This is Image part of the openglGUI class |
18 | /** | |
19 | * | |
20 | */ | |
21 | class GLGuiImage : public GLGuiWidget | |
22 | { | |
[3543] | 23 | |
[7779] | 24 | public: |
25 | GLGuiImage(); | |
26 | virtual ~GLGuiImage(); | |
[2036] | 27 | |
[8035] | 28 | void loadImageFromTexture(const Texture& texture); |
29 | ||
30 | void loadImageFromFile(const std::string& fileName); | |
[7779] | 31 | void loadImageFromSDLSurface(SDL_Surface* surface); |
[8035] | 32 | void loadImageFromDisplayList(GLuint texture); |
[1853] | 33 | |
[8035] | 34 | virtual void draw() const; |
[1853] | 35 | |
[8035] | 36 | DeclareSignal0(imageChanged); |
37 | ||
[7779] | 38 | private: |
[8035] | 39 | void init(); |
40 | virtual void resize(); | |
[3245] | 41 | |
[8035] | 42 | private: |
43 | Texture texture; | |
[7779] | 44 | }; |
45 | } | |
[5366] | 46 | #endif /* _GLGUI_IMAGE_H */ |
Note: See TracBrowser
for help on using the repository browser.