asteroidgen/src/SkyBox.h

31 lines
396 B
C
Raw Permalink Normal View History

2017-11-02 03:44:44 +01:00
#pragma once
2017-11-03 03:00:32 +01:00
#include "gl.h"
#include "Mesh.h"
#include <glm/mat4x4.hpp>
2017-11-02 03:44:44 +01:00
#include <string>
2017-11-03 03:00:32 +01:00
2017-11-02 03:44:44 +01:00
class SkyBox {
public:
SkyBox();
~SkyBox();
bool Load(const std::string basename);
bool Load(GLuint target, const std::string filename);
2017-11-03 03:00:32 +01:00
void Render(glm::mat4 mvp);
2017-11-02 03:44:44 +01:00
private:
std::string fileNames[6];
GLuint textureId, programId;
2017-11-03 03:00:32 +01:00
GLint textureLoc, MVPloc;
Mesh mesh;
GLMesh glMesh;
2017-11-02 03:44:44 +01:00
};