First build that actually works. SDL_main errors before but didn't figure out the cause.
This commit is contained in:
commit
6b181382bd
21 changed files with 2853 additions and 0 deletions
34
main.cpp
Normal file
34
main.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
Copyright (c) 2004, Lode Vandevenne
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
#include <cmath>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
#include "quickcg.h"
|
||||
using namespace QuickCG;
|
||||
using namespace std;
|
||||
|
||||
//place the example code below here:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
screen(256, 256, 0, "Small Test Script");
|
||||
for (int x = 0; x < w; x++)
|
||||
for (int y = 0; y < h; y++)
|
||||
{
|
||||
pset(x, y, ColorRGBA(x, y, 128, 255));
|
||||
}
|
||||
print("Hello, world!", 8, 8);
|
||||
|
||||
std::string test;
|
||||
test.resize(20);
|
||||
|
||||
redraw();
|
||||
sleep();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue