Initial commit.

This commit is contained in:
jmsgrogan 2020-05-02 08:31:03 +01:00
commit 59c6161fdb
134 changed files with 4751 additions and 0 deletions

View file

@ -0,0 +1,5 @@
list(APPEND graphics_LIB_INCLUDES OpenGlInterface)
add_library(graphics SHARED ${graphics_LIB_INCLUDES})
target_link_libraries(graphics PUBLIC GL)

View file

@ -0,0 +1,20 @@
#include "OpenGlInterface.h"
#include <GL/gl.h>
void OpenGlInterface::draw()
{
glClearColor(0.4, 0.4, 0.4, 0.4);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 1.0, 1.0);
glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
glBegin(GL_TRIANGLES);
glVertex3f(-0.7, 0.7, 0);
glVertex3f(0.7, 0.7, 0);
glVertex3f(0, -1, 0);
glEnd();
glFlush();
}

View file

@ -0,0 +1,10 @@
#pragma once
class OpenGlInterface
{
public:
static void draw();
};