Debug Grid
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
#include "display/texture.h"
|
||||
#include "display/tileset.h"
|
||||
|
||||
#include "display/debug/grid.h"
|
||||
#include "display/debug/position.h"
|
||||
|
||||
#include "display/gui/font.h"
|
||||
|
20
include/dawn/display/debug/grid.h
Normal file
20
include/dawn/display/debug/grid.h
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
|
||||
#define GRID_COLUMN_ROWS 100
|
||||
#define GRID_COLUMN_ROWS_SIZE 0.1
|
||||
|
||||
#define GRID_VERTICE_COUNT (GRID_COLUMN_ROWS+1) * (GRID_COLUMN_ROWS+1) * 3
|
||||
#define GRID_INDICE_COUNT GRID_COLUMN_ROWS * GRID_COLUMN_ROWS * 8
|
||||
|
||||
typedef struct {
|
||||
GLuint vertexBuffer;
|
||||
GLuint indexBuffer;
|
||||
} griddebug_t;
|
Reference in New Issue
Block a user