Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
skybox.h
1
#pragma once
2
3
#include <glow/ref_ptr.h>
4
5
#include "etc/contextdependant.h"
6
7
namespace
glow {
8
class
Texture;
9
class
Program;
10
class
VertexArrayObject;
11
class
Buffer;
12
}
13
14
class
Camera
;
15
16
class
Skybox
:
public
ContextDependant
{
17
public
:
18
Skybox
();
19
20
void
draw(
const
Camera
& camera);
21
22
23
protected
:
24
glow::ref_ptr<glow::Texture> m_texture;
25
glow::ref_ptr<glow::Program> m_shaderProgram;
26
glow::ref_ptr<glow::VertexArrayObject> m_vertexArrayObject;
27
glow::ref_ptr<glow::Buffer> m_vertexBuffer;
28
29
void
initialize();
30
virtual
void
beforeContextDestroy()
override
;
31
virtual
void
afterContextRebuild()
override
;
32
};
33
ContextDependant
Definition:
contextdependant.h:7
Skybox
Definition:
skybox.h:16
Camera
Definition:
camera.h:10
src
skybox.h
Generated on Sun Mar 30 2014 13:32:31 for Voxellancer by
1.8.6