Merge remote-tracking branch 'origin/master' into particles

Conflicts:
	src/GUI/GameFrame.h
	src/GUI/TextureFrame.h
	vs11/Returngeance/Returngeance.vcxproj.filters
This commit is contained in:
Stiffly
2014-06-02 17:37:25 +02:00
13 changed files with 262 additions and 43 deletions
+18
View File
@@ -43,11 +43,27 @@ public:
void UpdateCamera(int cameraIdentifier, glm::vec3 position, glm::quat orientation, float FOV, float nearClip, float farClip);
#pragma region NEWSTUFF
void SetResolution(const Rectangle &resolution)
{
m_Width = resolution.Width;
m_Height = resolution.Height;
}
void SetFullscreen(bool fullscreen)
{
m_Fullscreen = fullscreen;
}
void SetViewport(const Rectangle &viewport)
{
m_Viewport = viewport;
}
void SetScissor(const Rectangle &scissor)
{
m_Scissor = scissor;
}
void SetCamera(std::shared_ptr<Camera> camera)
{
m_Camera = camera;
@@ -94,6 +110,7 @@ public:
private:
std::shared_ptr<::ResourceManager> ResourceManager;
bool m_Fullscreen;
int m_Width, m_Height;
struct Viewport
@@ -109,6 +126,7 @@ private:
std::unordered_map<int, std::shared_ptr<Camera>> m_Cameras;
Rectangle m_Viewport;
Rectangle m_Scissor;
std::shared_ptr<Camera> m_Camera;
struct Light