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
// Source: http://www.mralligator.com/q3/ | |
// Source: https://github.com/id-Software/GtkRadiant/blob/master/tools/quake3/q3map2/q3map2.h | |
#ifndef __IBSP_FORMAT_DEF_H__ | |
#define __IBSP_FORMAT_DEF_H__ | |
// Byte definition | |
typedef unsigned char ubyte; | |
// Vectors definition |
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
// source: https://stackoverflow.com/questions/6899025/hide-user-input-on-password-prompt | |
#include <iostream> | |
#include <string> | |
#ifdef WIN32 // Windows | |
#include <windows.h> | |
#else // Unix = Linux / Mac OS | |
#include <termios.h> | |
#include <unistd.h> |
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
fprintf(stdout, ">> X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF\n"); | |
for(int i = 0; i < 16; ++i) { | |
fprintf(stdout, "%XX", i); | |
for(int j = 0; j < 16; ++j) { | |
unsigned char num = i * 16 + j; | |
NewerOlder