Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/gui/src/lib/gui/gl_gui/glgui_image.h @ 8115

Last change on this file since 8115 was 8035, checked in by bensch, 18 years ago

gui: merged the gui back to the trunk

File size: 794 bytes
Line 
1/*!
2 * @file glgui_image.h
3 * The gl_Image widget of th openglGUI
4 *
5 */
6
7#ifndef _GLGUI_IMAGE_H
8#define _GLGUI_IMAGE_H
9
10#include "glgui_widget.h"
11
12// FORWARD DECLARATION
13struct SDL_Surface;
14namespace OrxGui
15{
16
17  //! This is Image part of the openglGUI class
18  /**
19   *
20   */
21  class GLGuiImage : public GLGuiWidget
22  {
23
24  public:
25    GLGuiImage();
26    virtual ~GLGuiImage();
27
28    void loadImageFromTexture(const Texture& texture);
29
30    void loadImageFromFile(const std::string& fileName);
31    void loadImageFromSDLSurface(SDL_Surface* surface);
32    void loadImageFromDisplayList(GLuint texture);
33
34    virtual void draw() const;
35
36    DeclareSignal0(imageChanged);
37
38  private:
39    void init();
40    virtual void resize();
41
42  private:
43    Texture       texture;
44  };
45}
46#endif /* _GLGUI_IMAGE_H */
Note: See TracBrowser for help on using the repository browser.