hibiscus/core/source/renderer/renderer.d

21 lines
311 B
D
Raw Normal View History

2023-05-22 20:22:13 +00:00
module hibis.renderer.renderer;
2023-05-20 21:27:42 +00:00
2023-05-22 20:22:13 +00:00
import hibis.math.types;
2023-05-21 13:02:53 +00:00
2023-05-20 21:27:42 +00:00
abstract class Renderer {
2023-05-21 13:02:53 +00:00
// Draw
2023-05-21 20:55:02 +00:00
void clearScreen(Color col);
2023-05-21 13:02:53 +00:00
void renderCurrent();
// Pre and Post draw
void preDraw();
void postDraw();
// Update
void update();
2023-05-21 13:02:53 +00:00
// Util
2023-05-21 20:55:02 +00:00
void setWindowTitle(string title);
public bool keepOpen = true;
2023-05-20 21:27:42 +00:00
}