MCPcopy Create free account
hub / github.com/dfranx/SHADERed / ObjectManager

Method ObjectManager

src/SHADERed/Objects/ObjectManager.cpp:20–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19namespace ed {
20 ObjectManager::ObjectManager(ProjectParser* parser, RenderEngine* rnd)
21 : m_parser(parser)
22 , m_renderer(rnd)
23 {
24 m_binds.clear();
25 memset(m_kbTexture, 0, sizeof(unsigned char) * 256 * 3);
26
27 m_keyIDs = {
28 { SDLK_BACKSPACE, 8 },
29 { SDLK_TAB, 9 },
30 { SDLK_RETURN, 13 },
31 // { SHIFT, 16 },
32 // { CTRL, 17 },
33 // { ALT, 18 },
34 { SDLK_PAUSE, 19 },
35 { SDLK_CAPSLOCK, 20 },
36 { SDLK_ESCAPE, 27 },
37 { SDLK_PAGEUP, 33 },
38 { SDLK_SPACE, 32 },
39 { SDLK_PAGEDOWN, 34 },
40 { SDLK_END, 35 },
41 { SDLK_HOME, 36 },
42 { SDLK_LEFT, 37 },
43 { SDLK_UP, 38 },
44 { SDLK_RIGHT, 39 },
45 { SDLK_DOWN, 40 },
46 { SDLK_PRINTSCREEN, 44 },
47 { SDLK_INSERT, 45 },
48 { SDLK_DELETE, 46 },
49 { SDLK_0, 48 },
50 { SDLK_1, 49 },
51 { SDLK_2, 50 },
52 { SDLK_3, 51 },
53 { SDLK_4, 52 },
54 { SDLK_5, 53 },
55 { SDLK_6, 54 },
56 { SDLK_7, 55 },
57 { SDLK_8, 56 },
58 { SDLK_9, 57 },
59 { SDLK_a, 65 },
60 { SDLK_b, 66 },
61 { SDLK_c, 67 },
62 { SDLK_d, 68 },
63 { SDLK_e, 69 },
64 { SDLK_f, 70 },
65 { SDLK_g, 71 },
66 { SDLK_h, 72 },
67 { SDLK_i, 73 },
68 { SDLK_j, 74 },
69 { SDLK_k, 75 },
70 { SDLK_l, 76 },
71 { SDLK_m, 77 },
72 { SDLK_n, 78 },
73 { SDLK_o, 79 },
74 { SDLK_p, 80 },
75 { SDLK_q, 81 },
76 { SDLK_r, 82 },
77 { SDLK_s, 83 },

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected