Skip to content

Instantly share code, notes, and snippets.

#include <public/Graphics/GLUT/C++/GLUT.hpp>
// Global
bool bp_glutRunFlag = false;
// glGetString(GL_VERSION)
void bp_closeFunc() {
bp_glutRunFlag = false;
}
return self.binaryOperatorDivideSyntax % (self.exprPrefix, op1, connector, op2, self.exprPostfix)
def checkInterfaceImplementation(self, classObj, interface):
debug("Checking '%s' for implementation of interface '%s'" % (classObj.name, interface.name))
for method in interface.functions:
if not classObj.hasFunction(method):
raise CompilerException("Class '%s' does not define the '%s' method of interface '%s'" % (classObj.name, method, interface.name))
a = Vector<Byte>()
on a
add('a')
add(98)
add('c')
add(100)
add(0)
print String(a.data)
MyClass
init
my.a = 0.0
public
a
MyClass
public
a
init
my.a = 0.0
MyClass
init
my.member = 5
MyClass
init
...
doSomething
my.a = 5
MyClass
init
...
doSomething
my.a = 5
public
a
win = GraphicsWindow("Flua - Frames", 800, 600)
for frames in win.frames
...
import playground.Everything
# Check bp.Documentation in the module browser on the left for some beginner topics.
WIDTH : Int = 640
HEIGHT : Int = 480
win = GraphicsWindow("aaaa", WIDTH, HEIGHT)
setupGL()
for frame in win.frames
glColor3f 1.0, 1.0, 1.0