-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPTextures.h
More file actions
46 lines (35 loc) · 1.02 KB
/
PTextures.h
File metadata and controls
46 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#ifndef PTEXTURES
#define PTEXTURES
// Include
#include <vector>
#include <GL\glew\glew.h>
#include <GL\GLSLFactory.h>
#include <GL\CGTextureLoader.h>
// ---------------------------------------------------------------------
// PTextures (Project Textures) - Used to store all of the texture resources
// ---------------------------------------------------------------------
class PTextures
{
// ---------------------------------------------------------------------
private:
// Simple structure to hold texture data and file path
// Placed privately since only this class needs to use it.
struct PTexture
{
// Where the texture is
std::string filePath;
// A Gluint to store the 'link' to the texture
GLuint texture;
};
// Vector of texture resources
std::vector<PTexture> textures;
// ---------------------------------------------------------------------
public:
// Constructor / Deconstructor
PTextures();
~PTextures();
// Add node (to linkedNodes list)
void addTexture(std::string filePath);
};
#endif