- OpenGL
- Excellent OpenGL 3 and 3D CG foundations tutorial: http://www.arcsynthesis.org/gltut/index.html (work in progress)
- Function loader for OpenGL 3/4 core contexts: https://github.com/skaslev/gl3w
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
TODO para o SCV: | |
Bugs: | |
- Adicionar função para setar Headers da tabela. | |
- Tambem suportar a remoção completa do header, se desejado. | |
- Bug ao usar o display da label de dentro do canvas | |
- Poder remover componentes no designer. | |
- Arrumar o "don't must" na documentação. | |
Wishlist: |
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
# data Expr = '(' PExpr ')' | PExpr | |
# data PExpr = Var | Apply | LExpr | |
# data Var = 'a'..'z' | |
# data Apply = Expr Expr | |
# data LExpr = '$' Var ( '.' Expr )? | |
import re | |
token_re = re.compile(r'\s*(?:(\w+)|(\$)|(\.)|(\()|(\))|(.))') | |
VAR = 1; LAMBDA = 2; DOT = 3; L_PAREN = 4; R_PAREN = 5; ERROR = 6 |
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 java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; | |
import javax.sound.sampled.*; | |
import java.io.*; | |
import java.util.concurrent.locks.*; | |
public class Audio implements KeyListener { | |
private Lock lock = new ReentrantLock(); |
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
uint8* dest = malloc(width * height * 4); | |
short* src = imgData; | |
for (int i = 0; i < width * height; ++i) { | |
short x = *src++; | |
*dest++ = (x >> 8) & 0xFF; | |
*dest++ = x & 0xFF; | |
*dest++ = 0; | |
*dest++ = 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
colorscheme slate | |
highlight SpecialKey gui=NONE guifg=#1a1a1a | |
highlight ModeMsg term=bold,reverse ctermfg=6 gui=bold,reverse guifg=goldenrod | |
highlight Search guibg=#7e5227 guifg=NONE | |
highlight LineNr guifg=grey60 guibg=grey25 | |
highlight PreProc guifg=red guibg=NONE ctermfg=red | |
set guifont=Envy\ Code\ R:h10 | |
set columns=120 |
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
u32 readWrappedTexel(CubeFace face, int x, int y) { | |
assert(face < NUM_FACES); | |
static const CubeFace face_left_of[] = { | |
/* FACE_POS_X */ FACE_POS_Z, | |
/* FACE_NEG_X */ FACE_NEG_Z, | |
/* FACE_POS_Y */ FACE_NEG_X, | |
/* FACE_NEG_Y */ FACE_NEG_X, | |
/* FACE_POS_Z */ FACE_NEG_X, | |
/* FACE_NEG_Z */ FACE_POS_X |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <stack> | |
#include <cstring> | |
using namespace std; | |
int m[300][300]; | |
int H, W; |
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
; chunks\chunk1c6.bin - object D1h - entrypoint 84CEh vm | |
84CE: SPRVM.IP $8A0E ; Sets sub-vm instruction pointer | |
84D1: SPRVM.RUN ; Invoke animation VM | |
84D2: LDA #0 ; LoaD A { A = op0; } | |
84D5: STA ($selectedCharacter) ; STore A to memory | |
84D8: LDA #1000 ; LoaD A { A = op0; } | |
84DB: OBJPROP.ORA #8 ; OR current object property op0/2 with A | |
84DD: LDA #1234 ; LoaD A { A = op0; } | |
┌─ 84E0: JE ($200), $84FF ; Jump if Equal { if (*op0 == A) goto op1; } | |
│ |
OlderNewer