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
#include <public/Graphics/GLUT/C++/GLUT.hpp> | |
// Global | |
bool bp_glutRunFlag = false; | |
// glGetString(GL_VERSION) | |
void bp_closeFunc() { | |
bp_glutRunFlag = false; | |
} |
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
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)) | |
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
a = Vector<Byte>() | |
on a | |
add('a') | |
add(98) | |
add('c') | |
add(100) | |
add(0) | |
print String(a.data) |
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
MyClass | |
init | |
my.a = 0.0 | |
public | |
a |
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
MyClass | |
public | |
a | |
init | |
my.a = 0.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
MyClass | |
init | |
my.member = 5 |
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
MyClass | |
init | |
... | |
doSomething | |
my.a = 5 |
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
MyClass | |
init | |
... | |
doSomething | |
my.a = 5 | |
public | |
a |
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
win = GraphicsWindow("Flua - Frames", 800, 600) | |
for frames in win.frames | |
... |
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 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 |
OlderNewer