Skip to content

Instantly share code, notes, and snippets.

View jerstlouis's full-sized avatar

Jerome St-Louis jerstlouis

View GitHub Profile
import "ecere"
define seed = 123456;
define popInit = 1000;
define width = 100;
define height = 100;
define cellWidth = 4;
define cellHeight = 4;
Array<byte> grid { size = width * height };
import "ecere"
#include <GL/gl.h>
class Form1 : Window
{
displayDriver = "OpenGL";
caption = $"Form1";
background = formColor;
borderStyle = sizable;
import "ecere"
#include <GL/gl.h>
class Form1 : Window
{
displayDriver = "OpenGL";
caption = $"Form1";
background = formColor;
borderStyle = sizable;
import "ecere"
#include <GL/gl.h>
class RenderArea : Window
{
void OnRedraw(Surface surface)
{
glClearColor(1,0.5,0.5,1);
glClear(GL_COLOR_BUFFER_BIT);
#include "buttons.h"
#include "cursor.h"
#include "cdaudio.h"
#include "input.h"
#include "pcx.h"
#include "scrolbar.h"
#include "video.h"
#define NUMBUTTONS 38
#define NUMFONTS 5
import "autoLayout"
AutoLayoutForm form1 { contents = Slide1 { }, clientSize = { 1600, 1200 } };
class CCol : Col { hAlignment = center, vAlignment = center; };
class MBar : Bar { maxSize = { 1.0, 30 }; };
class Bullet : Element { fgColor = white; }
class TealBullet : Element { fgColor = teal; }
class Slide1 : CCol
import "autoLayout"
AutoLayoutForm form1 { contents = Slide1 { }, clientSize = { 1600, 1200 } };
class CCol : Col { hAlignment = center, vAlignment = center; };
class BMBar : Bar { maxSize.h = 60; };
class MBar : Bar { maxSize.h = 30; };
define textColor = 0xFF2F3A3E;
class Header : Element { font = { "Verdana", 30, bold = true }; fgColor = textColor; }
class Bullet : Element
import "ecere"
define seed = 123456789;
define popInit = 41255;
define width = 1920/2;
define height = 1080/2;
define cellWidth = 2;
define cellHeight = 2;
Array<byte> _grid { size = width * height };
Freeing Already Freed Memory
Current Stack:
obj/memoryGuard.win32/documentor.main.ec:main
src/gui/GuiApplication.ec:__ecereMethod___ecereNameSpace__ecere__gui__GuiApplication_Main
src/gui/GuiApplication.ec:__ecereMethod___ecereNameSpace__ecere__gui__GuiApplication_ProcessInput
src/gui/drivers/Win32Interface.ec:__ecereMethod___ecereNameSpace__ecere__gui__drivers__Win32Interface_ProcessInput
src/gui/drivers/Win32Interface.ec:__ecereMethod___ecereNameSpace__ecere__gui__drivers__Win32Interface_ApplicationWindow
src/gui/Window.ec:__ecereMethod___ecereNameSpace__ecere__gui__Window_MouseMessage
src/Documentor.ec:__ecereMethod_HelpView_OnLeftButtonDown
src/Documentor.ec:__ecereMethod_HelpView_SaveEdit
transformList result:
x: 1227.062, y: 172.5477
x: 1226.431, y: 173.7193
x: 1225.979, y: 174.329
x: 1223.491, y: 175.8459
x: 1222.522, y: 176.756
x: 1222.21, y: 177.3131
x: 1222.072, y: 179.4344
x: 1221.341, y: 180.8874
x: 1218.321, y: 184.1779