31 lines
614 B
C++
31 lines
614 B
C++
#pragma once
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <GL/glew.h>
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
|
|
#include <glm/mat4x4.hpp>
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
#include <glm/gtc/matrix_inverse.hpp>
|
|
#include <glm/gtc/type_ptr.hpp>
|
|
#include "Shader.h"
|
|
#include "SceneContext.h"
|
|
|
|
class Skybox
|
|
{
|
|
private:
|
|
unsigned int vao;
|
|
unsigned int vector_vbo;
|
|
unsigned int ibo;
|
|
GLuint texID;
|
|
public:
|
|
Skybox();
|
|
float scale = 1;
|
|
void initialize(std::string skybox_dir, Shader *sky);
|
|
GLuint getTexID() { return texID; }
|
|
~Skybox();
|
|
void draw(Shader *sky_shader, SceneContext &ctx);
|
|
};
|
|
|