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();
|
|
|
|
|
2023-05-22 20:15:51 +00:00
|
|
|
// Update
|
|
|
|
void update();
|
|
|
|
|
2023-05-21 13:02:53 +00:00
|
|
|
// Util
|
2023-05-21 20:55:02 +00:00
|
|
|
void setWindowTitle(string title);
|
2023-05-22 20:42:34 +00:00
|
|
|
|
|
|
|
public bool keepOpen = true;
|
2023-05-20 21:27:42 +00:00
|
|
|
}
|