Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl/glgui_image.h @ 8304

Last change on this file since 8304 was 8145, checked in by bensch, 19 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

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.