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
// | |
// main.cpp | |
// VoxalEditor | |
// | |
// Created by Vbitz on 9/02/12. | |
// Copyright (c) 2012 Vbitz. All rights reserved. | |
// | |
#include "stdheader.h" | |
#include "main.h" |
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
hello world |
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
void CubeSide::Draw() | |
{ | |
if (!Enabled) return; | |
//openGL::glColor3i(125, 0, 0); | |
openGL::glColor4f(R, G, B, 255); | |
openGL::glVertex3f(Point1.X, Point1.Y, Point1.Z); | |
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
// this just allows the user to download and print a url. | |
extend<string> void #call(string str) // first extend the string class with the language built in #call, this is | |
// called if a string is left out on it's own, it can be loaded in only a single scope | |
{ | |
print str; // Just print the string to standed output | |
} | |
extend<string> string ?http(string str) // extend string methods, this is for stuff like regex, it takes a string arg and in this case returns a string | |
{ |
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
mingw32-g++ -c -D_GNU_SOURCE=1 -Dmain=SDL_main src/main.cpp -o obj/main.o | |
mingw32-g++ -lmingw32 -lSDLmain -lSDL -mwindows obj/main.o -o bin/game.exe | |
obj/main.o:main.cpp:(.text+0x4e): undefined reference to `SDL_SetVideoMode' | |
obj/main.o:main.cpp:(.text+0x7b): undefined reference to `SDL_PollEvent' | |
obj/main.o:main.cpp:(.text+0x91): undefined reference to `SDL_Flip' | |
collect2: ld returned 1 exit status | |
mingw32-make: *** [build] Error 1 |
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
// by vbitz | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web; | |
using System.Net; | |
using System.IO; | |
using System.Drawing; |
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
{ '10.7.3': 'Mac OS X', | |
'10.6.8': 'Mac OS X', | |
'6.1': 'Windows 7', | |
'10.5.8': 'Mac OS X', | |
'6.0': 'Windows Vista', | |
'10.4.11': 'Mac OS X', | |
'5.2': 'Windows XP', | |
'10.6.6': 'Mac OS X', | |
'10.7.2': 'Mac OS X', | |
'5.1': 'Windows XP', |
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
DECIMAL HEX DESCRIPTION | |
------------------------------------------------------------------------------------------------------- | |
25249188 0x18145A4 gzip compressed data, was "\325\237\025\332\025\270%\301\304\345\364\315B)\363\304\247\253\251", encrypted, last modified: Thu Nov 25 16:22:11 1999 | |
37130476 0x23690EC JFFS2 filesystem (old) data little endian, JFFS node length: 914595 | |
150067972 0x8F1DB04 JFFS2 filesystem data little endian, JFFS node length: 250554 | |
162196754 0x9AAED12 gzip compressed data, has CRC, was "\366\260\301G\305\177\362\215\363f\224\026\245\2127\037+{\277S \215O\316\255\366\022\221C\3264\325'd\324\343:\245\016\023V/#\321\337]\271\253\327\306B\2005u\332\\253:", has comment, from NTFS filesystem (NT), comment, encrypted, last modified: Fri Aug 18 07:26:31 1995 | |
184838701 0xB046A2D JFFS2 filesystem data big endian, JFFS node length: 817074 | |
201319893 0xBFFE5D5 lzip compressed data, version: 253 | |
215270942 0xCD4C61E JFFS2 filesystem data big endian, JFFS node length: 729 |
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
compile: | |
g++ -o bin/engine -Ilib/ -Llib/ -lglew32 -lglfw -lglu32 -lopengl32 src/platform/OSXWindow.cpp src/Object.cpp src/Camera.cpp src/Shader.cpp src/ModelBuffer.cpp src/Application.cpp src/GLApplication.cpp src/main.cpp | |
all: compile | |
g++ -o bin/engine -Ilib/ -Llib/ -lglew32 -lglfw -lglu32 -lopengl32 src/platform/OSXWindow.cpp src/Object.cpp src/Camera. | |
cpp src/Shader.cpp src/ModelBuffer.cpp src/Application.cpp src/GLApplication.cpp src/main.cpp | |
C:\Users\Joshua\AppData\Local\Temp\cc2kUOUA.o:OSXWindow.cpp:(.text+0x3f): undefined reference to `glfwInit' | |
C:\Users\Joshua\AppData\Local\Temp\cc2kUOUA.o:OSXWindow.cpp:(.text+0x89): undefined reference to `glfwOpenWindow' | |
C:\Users\Joshua\AppData\Local\Temp\cc2kUOUA.o:OSXWindow.cpp:(.text+0x9c): undefined reference to `glfwSetWindowTitle' |
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
var net = require("net"); | |
var type = Function.prototype.call.bind( Object.prototype.toString ); | |
function kickPlayer (c, player, reason) { | |
if (player !== null) { | |
} | |
console.log("Kicking " + player + " with reason " + reason); | |
c.end(writeBufferData(0xFF, [reason])); |
OlderNewer