2 Star 0 Fork 0

shark-dynamics/opengl-tutorial-cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
InputProcessor.h 613 Bytes
一键复制 编辑 原始数据 按行查看 历史
chessplayer 提交于 2021-05-20 17:12 +08:00 . support mouse
//
// Created by chess on 2021/5/20.
//
#ifndef OPENGL_TUTORIAL_INPUTPROCESSOR_H
#define OPENGL_TUTORIAL_INPUTPROCESSOR_H
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
namespace sk {
class InputProcessor {
public:
static InputProcessor* Instance() {
static InputProcessor instance;
return &instance;
}
void ProcessEvent(GLFWwindow* window, float delta);
void ProcessCursor(double x, double y);
private:
float last_x = 0;
float last_y = 0;
bool first_enter = true;
float pitch = 0;
float yaw = 270;
};
}
#endif //OPENGL_TUTORIAL_INPUTPROCESSOR_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shark-dynamics/opengl-tutorial-cpp.git
git@gitee.com:shark-dynamics/opengl-tutorial-cpp.git
shark-dynamics
opengl-tutorial-cpp
opengl-tutorial-cpp
10.0_load_obj_model

搜索帮助