started msh read in
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
#pragma once
|
||||
#include <gl\glew.h>
|
||||
#include <gl\glfw3.h>
|
||||
#include <glm\glm.hpp>
|
||||
|
||||
class Camera
|
||||
{
|
||||
public:
|
||||
Camera(int width, int height);
|
||||
~Camera();
|
||||
|
||||
private:
|
||||
float fFOV;
|
||||
float fMinView;
|
||||
float fMaxView;
|
||||
|
||||
int iWidth;
|
||||
int iHeight;
|
||||
|
||||
double dTranslationX;
|
||||
double dTranslationY;
|
||||
double dTranslationZ;
|
||||
|
||||
|
||||
glm::mat4 m4x4Projection;
|
||||
glm::mat4 m4x4View;
|
||||
|
||||
private:
|
||||
void updateMatrices();
|
||||
|
||||
public:
|
||||
glm::mat4 getMatrix();
|
||||
|
||||
void setFOV(float fov);
|
||||
void setMinView(float distance);
|
||||
void setMaxView(float distance);
|
||||
void setSize(int width, int height);
|
||||
|
||||
void add2x(double value);
|
||||
void add2y(double value);
|
||||
void add2z(double value);
|
||||
|
||||
|
||||
};
|
@@ -1,9 +1,7 @@
|
||||
#pragma once
|
||||
#include <gl\glew.h>
|
||||
#include <gl\glfw3.h>
|
||||
#include <glm\glm.hpp>
|
||||
#include <vector>
|
||||
|
||||
|
||||
class Object
|
||||
{
|
||||
public:
|
||||
@@ -11,37 +9,8 @@ public:
|
||||
~Object();
|
||||
|
||||
private:
|
||||
GLuint gluiVertexArrayID;
|
||||
GLuint gluiVertexBufferID;
|
||||
GLuint gluiUVBufferID;
|
||||
|
||||
GLuint gluiShaderPrgmID;
|
||||
GLuint gluiTextureID;
|
||||
|
||||
std::vector<GLfloat> vfVertices;
|
||||
std::vector<GLfloat> vfUV;
|
||||
|
||||
float fRotationX;
|
||||
float fRotationY;
|
||||
float fRotationZ;
|
||||
|
||||
glm::mat4 m4x4Model;
|
||||
|
||||
private:
|
||||
void processTexture();
|
||||
void calcMatrix();
|
||||
void loadMesh2OGL();
|
||||
|
||||
|
||||
|
||||
public:
|
||||
glm::mat4 getMatrix();
|
||||
GLuint getShader() const;
|
||||
GLuint getTextureID() const;
|
||||
GLuint getVertexBufferID() const;
|
||||
GLuint getUVBufferID() const;
|
||||
int getVertexNumber() const;
|
||||
|
||||
void add2x(float value);
|
||||
void add2y(float value);
|
||||
void add2z(float value);
|
||||
};
|
||||
|
Reference in New Issue
Block a user