-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathned.h
More file actions
57 lines (46 loc) · 1.02 KB
/
ned.h
File metadata and controls
57 lines (46 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
47
48
49
50
51
52
53
54
55
56
57
/*
File: ned.h
Description: Main application class for NED text editor.
This encapsulates the core application logic, initialization, and render
loop.
*/
#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <chrono>
#include <string>
#include "ai/ai_agent.h"
#include "editor/editor.h"
#include "editor/editor_bookmarks.h"
#include "files/file_tree.h"
#include "files/files.h"
#include "shaders/shader_manager.h"
#include "shaders/shader_types.h"
#include "util/app.h"
#include "util/font.h"
#include "util/render.h"
#include "util/splitter.h"
#include "util/window_resize.h"
struct GLFWwindow;
class ImFont;
class Ned
{
public:
Ned();
~Ned();
bool initialize();
void run();
void cleanup();
private:
App app;
ShaderManager shaderManager;
FramebufferState fb;
ShaderQuad quad;
Splitter splitter;
Render render;
bool initialized;
static void scrollCallback(GLFWwindow *window, double xoffset, double yoffset);
AccumulationBuffers accum;
WindowResize windowResize;
};
extern Bookmarks gBookmarks;