Slide 4
Slide 4 text
Identify key types
◼
Key types in GLFW
◼
GLFW_KEY_X is defined as an enumeration.
◼
e.g.) “A” → GLFW_KEY_A, “1” → GLFW_KEY_1
◼
GLFW_KEY_X is defined by ASCII codes(*1)
◼
e.g.) GLFW_KEY_A → 0x41, GLFW_KEY_1 → 0x31
Computer Graphics Course @Waseda University
*1) ASCII - Wikipedia https://en.wikipedia.org/wiki/ASCII
By converting to char type, it can be printed as a character.
4