This file contains hidden or 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
| /*------------------------------------------------------------------+ | |
| | | | |
| | This program will draw a 3D cylinder using OpenGL 2.1 API | | |
| | | | |
| | Language: C89 strict | | |
| | Compiler: GNU GCC 4.8.3 | | |
| | | | |
| | Tested on Fedora 19 64-bit and Windows 7 64-bit, | | |
| | both works with no errors and no warnings :) | | |
| | | |
This file contains hidden or 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
| /* | |
| r = torus ring radius | |
| c = torus tube radius | |
| rSeg, cSeg = number of segments/detail | |
| */ | |
| void drawTorus(double, double, int, int, int); | |
| void drawTorus(double r = 0.07, double c = 0.15, | |
| int rSeg = 16, int cSeg = 8, |
This file contains hidden or 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
| #------------------------------------------------------------------------------- | |
| # lexer.py | |
| # | |
| # A generic regex-based Lexer/tokenizer tool. | |
| # See the if __main__ section in the bottom for an example. | |
| # | |
| # Eli Bendersky (eliben@gmail.com) | |
| # This code is in the public domain | |
| # Last modified: August 2010 | |
| #------------------------------------------------------------------------------- |