This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Application : 3d Asset Browser | |
Author : Einlander | |
Purpose : Stores and keeps track of 3d assets | |
*/ | |
/* | |
Future goals | |
Able to connect to remote multi-user server/database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Camera | |
# member variables here, example: | |
# var a=2 | |
# var b="textvar" | |
export var flyspeed= 0.1 | |
var view_sensitivity = 0.3 | |
var defaulCam = Matrix3() | |
var mousedifference = Vector3() | |
var yaw = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my_function1(bool1): | |
if (bool1 = my_function2( insert_some_variable_here) ) = true : | |
dosomething | |
def my_function2(bool2): | |
return bool2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//load file to mem | |
import "ecere" | |
void file_read(const String filename) | |
{ | |
// with code from http://rosettacode.org/wiki/Read_entire_file#C | |
char *buffer; | |
File FileHandler = FileOpen(filename, read); | |
if (FileHandler) | |
{ | |
buffer = malloc(FileHandler.GetSize()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction | |
/* | |
Object Oriented Version | |
By: Einlander | |
*/ | |
import "ecere" | |
#include "gl_core_3_3.h" | |
class Example1_OO : Window | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction | |
//https://gitlab.com/wikibooks-opengl/modern-tutorials/blob/master/tut01_intro/triangle.cpp | |
import "ecere" | |
#include "gl_core_3_3.h" | |
GLuint program; | |
GLint attribute_coord2d; | |
GLfloat triangle_vertices[] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
#include <glad/glad.h> | |
#define property _property | |
#include <GL/glut.h> | |
#undef property | |
// GLAD_DEBUG is only defined if the c-debug generator was used | |
#ifdef GLAD_DEBUG | |
// logs every gl call to the console | |
void pre_gl_call(const char *name, void *funcptr, int len_args, ...) | |
{ |
NewerOlder