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 "SDL2/SDL.h" | |
#include "SDL2/SDL_mixer.h" | |
static const char *MY_COOL_MP3 = "cool_tunes.mp3"; | |
int main(int argc, char **argv) { | |
int result = 0; | |
int flags = MIX_INIT_MP3; | |
if (SDL_Init(SDL_INIT_AUDIO) < 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
GLvoid ftglBegin(GLenum prim) | |
{ | |
if (!ftglesQuadIndicesInitted) | |
{ | |
for (int i = 0; i < FTGLES_GLUE_MAX_VERTICES * 3 / 2; i += 6) | |
{ | |
int q = i / 6 * 4; | |
ftglesGlueArrays.quadIndices[i + 0] = q + 0; | |
ftglesGlueArrays.quadIndices[i + 1] = q + 1; | |
ftglesGlueArrays.quadIndices[i + 2] = q + 2; |
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
static bool hasGeneratedLookup = false; | |
#define DOT_LOOKUP_SIZE 1024 | |
#define DOT_LOOKUP_BITMASK 1023 | |
static uint8 colorDotLookup[DOT_LOOKUP_SIZE]; | |
/* | |
* Below code - waste of time; too slow. | |
*/ | |
inline uint8 hdColorDot(float color, float normal) | |
{ | |
unsigned i; |
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
struct card { short suit, short value } | |
struct player { card first, card second } | |
struct middle { card flop1, card flop2, card flop3, card turn, card river } | |
player players[ ] | |
int my_position | |
card cards[52] |
NewerOlder