mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 22:13:12 +02:00
Fixes per code review
This commit is contained in:
parent
3afb1dc7a8
commit
27540f1286
1 changed files with 21 additions and 24 deletions
|
@ -71,8 +71,7 @@ float angleBetween(glm::vec3 * v1, glm::vec3 * v2) {
|
|||
}
|
||||
|
||||
// Draw a 3D vector floating in space
|
||||
void drawVector(glm::vec3 * vector)
|
||||
{
|
||||
void drawVector(glm::vec3 * vector) {
|
||||
glDisable(GL_LIGHTING);
|
||||
glEnable(GL_POINT_SMOOTH);
|
||||
glPointSize(3.0);
|
||||
|
@ -113,8 +112,7 @@ void drawVector(glm::vec3 * vector)
|
|||
|
||||
}
|
||||
|
||||
void render_world_box()
|
||||
{
|
||||
void render_world_box() {
|
||||
// Show edge of world
|
||||
glDisable(GL_LIGHTING);
|
||||
glColor4f(1.0, 1.0, 1.0, 1.0);
|
||||
|
@ -172,8 +170,7 @@ float widthChar(float scale, int mono, char ch) {
|
|||
}
|
||||
|
||||
void drawtext(int x, int y, float scale, float rotate, float thick, int mono,
|
||||
char const* string, float r, float g, float b)
|
||||
{
|
||||
char const* string, float r, float g, float b) {
|
||||
//
|
||||
// Draws text on screen as stroked so it can be resized
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue