Last change
on this file since 3361 was
3358,
checked in by patrick, 20 years ago
|
orxonox/branches/parenting: imageloader works. but not yet fully implemented
|
File size:
749 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file glmenu_imagescreen |
---|
3 | \brief class to display a image |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | #ifndef _GLMENU_IMAGESCREEN_H |
---|
8 | #define _GLMENU_IMAGESCREEN_H |
---|
9 | |
---|
10 | #include "stdincl.h" |
---|
11 | |
---|
12 | class Texture; |
---|
13 | |
---|
14 | class GLMenuImageScreen : public BaseObject { |
---|
15 | |
---|
16 | public: |
---|
17 | GLMenuImageScreen (); |
---|
18 | ~GLMenuImageScreen (); |
---|
19 | |
---|
20 | void init (); |
---|
21 | void init (char* backImageName, float height, float width, |
---|
22 | float offsetX, float offsetY); |
---|
23 | |
---|
24 | void draw (); |
---|
25 | |
---|
26 | void setBackImageName (char* backImageName); |
---|
27 | void setPosition(float offsetX, float offsetY); |
---|
28 | void setSize(float height, float width); |
---|
29 | |
---|
30 | private: |
---|
31 | char* backImageName; //! the name of the file of the background image |
---|
32 | float height, width; |
---|
33 | float offsetX, offsetY; |
---|
34 | Texture* backTex; |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _GLMENU_IMAGESCREEN_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.