summaryrefslogtreecommitdiff
path: root/src/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/main.c')
-rw-r--r--src/main/main.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/main.c b/src/main/main.c
index 76876f0..6e10477 100644
--- a/src/main/main.c
+++ b/src/main/main.c
@@ -17,15 +17,27 @@
* along with Tris Game. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <GL/gl.h>
+#include <GL/glx.h>
#include <stdio.h>
#include <stdlib.h>
#include "ui/ui.h"
#include "engine/engine.h"
+#include "game.h"
#define WIDTH 640
#define HEIGHT 480
-void draw_frame() {
+void
+draw_frame()
+{
+ glClearColor(0.0f, 0.0f, 0.2f, 1.0f);
+ glClear(GL_COLOR_BUFFER_BIT);
+ glEnable(GL_LINE_SMOOTH);
+ glEnable(GL_BLEND);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
+ game_draw_field(100, 10, 10);
}
int main(void) {