a8c4b05d2f
This commit gets creates the ObjectOriented scene and gets it working. The current test program swaps a triangle from small to large with the 1 and 2 keys on the keyboard. (1 for small and 2 for large). The small triangle is rendered by the simple scene and the large one is rendered by the object oriented one.
21 lines
397 B
C++
21 lines
397 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "InputManager.h"
|
|
|
|
#include <map>
|
|
|
|
class GLFWInputManager : public InputManager
|
|
{
|
|
public:
|
|
~GLFWInputManager();
|
|
|
|
void init(GLFWwindow* p_window);
|
|
|
|
static void key_callback(GLFWwindow* p_window, int key, int scancode, int action, int mods);
|
|
private:
|
|
GLFWwindow* m_p_window = nullptr;
|
|
|
|
static std::map<GLFWwindow*, GLFWInputManager*> s_glfw_windows;
|
|
}; |