-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.h
More file actions
executable file
·47 lines (39 loc) · 1.13 KB
/
console.h
File metadata and controls
executable file
·47 lines (39 loc) · 1.13 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
#pragma once
#ifndef HEADER_CONSOLE_H
#define HEADER_CONSOLE_H
#include "glut.h"
#include <stdio.h>
#include "global.h"
#include <stdlib.h>
// namespace console{
#define STR_MAX 16384
// #define MYFONT GLUT_BITMAP_HELVETICA_18
// #define MYFONT GLUT_BITMAP_8_BY_13
#define MYFONT GLUT_BITMAP_9_BY_15
// #define MYFONT GLUT_BITMAP_TIMES_ROMAN_10
// #define MYFONT GLUT_BITMAP_TIMES_ROMAN_24
// #define MYFONT GLUT_BITMAP_HELVETICA_10
// #define MYFONT GLUT_BITMAP_HELVETICA_12
// #define MYFONT GLUT_BITMAP_HELVETICA_18
class GLUT2d;
class GLUT3d;
extern GLUT2d* myglut2d;
extern GLUT3d* myglut3d;
extern GLUT2d* myglut2d_img;
extern void show_classes();
extern void toggle_display();
extern int WINDOWX;
extern int WINDOWY;
extern int console_position;
extern char console_string[STR_MAX];
void quitme();
void display();
void drawText();
int grabint(char * p);
void process_string();
void setrgb(int r, int g, int b);
void getrgb(int & r, int & g, int & b);
void keyboard(unsigned char key, int x, int y);
void renderBitmapString(float x, float y, void *font, char *string);
// }
#endif