Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created December 1, 2015 03:25
Show Gist options
  • Save jerstlouis/5b036561457d175fafef to your computer and use it in GitHub Desktop.
Save jerstlouis/5b036561457d175fafef to your computer and use it in GitHub Desktop.
import "ecere"
#include <GL/gl.h>
class Form1 : Window
{
displayDriver = "OpenGL";
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
clientSize = { 632, 438 };
void OnRedraw(Surface surface)
{
glClearColor(1,0.5,0.5,1);
glClear(GL_COLOR_BUFFER_BIT);
}
}
Form1 form1 {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment