Neo  0.5.0
Developer Documentation
Skybox.h
Go to the documentation of this file.
1 //========================================================================
2 // Copyright (c) 2014 Yannick Pflanzer <www.scary-squid.de>
3 //
4 // This software is provided 'as-is', without any express or implied
5 // warranty. In no event will the authors be held liable for any damages
6 // arising from the use of this software.
7 //
8 // Permission is granted to anyone to use this software for any purpose,
9 // including commercial applications, and to alter it and redistribute it
10 // freely, subject to the following restrictions:
11 //
12 // 1. The origin of this software must not be misrepresented; you must not
13 // claim that you wrote the original software. If you use this software
14 // in a product, an acknowledgment in the product documentation would
15 // be appreciated but is not required.
16 //
17 // 2. Altered source versions must be plainly marked as such, and must not
18 // be misrepresented as being the original software.
19 //
20 // 3. This notice may not be removed or altered from any source
21 // distribution.
22 //
23 //========================================================================
24 
25 
26 #ifndef __SKYBOX_H
27 #define __SKYBOX_H
28 
29 #include <NeoCore.h>
30 
31 namespace Neo
32 {
33 class NEO_ENGINE_EXPORT Skybox
34 {
35  void drawQuad(Vector3 v1, Vector3 v2, Vector3 v3, Vector3 v4, Matrix4x4* matrix, Vector2* texCoords);
36 
37  TextureRef* m_SkyboxTexture[6];
38 
39  bool m_init;
40 
41  unsigned int m_fx;
42  unsigned int m_vertShad;
43  unsigned int m_pixShad;
44 
45  String m_path;
46 
47 public:
48  Skybox();
49  // destructor
50  ~Skybox(void){}
51 
52  void drawSkybox(Vector3 position, Vector3 rotation);
53  void loadSkyboxTextures(const char* path);
54 
55  inline const char* getPath() { return m_path.getSafeString(); }
56  inline bool isInitialized() { return m_init; }
57 };
58 }
59 #endif
~Skybox(void)
Definition: Skybox.h:50
Definition: Matrix4x4.h:31
Definition: Vector3.h:31
Implements a framework for string manipulation that operates directly on C strings.
Definition: NeoString.h:35
Definition: Vector2.h:31
const char * getSafeString(void)
Returns the C string. This method is ensured to return a valid C string and never NULL...
Definition: TextureRef.h:32
const char * getPath()
Definition: Skybox.h:55
Definition: Skybox.h:33
Definition: Color.h:29
bool isInitialized()
Definition: Skybox.h:56