annotate TaskManager/Test/simple_pack/trash/mygl.cpp @ 69:c9b973f0673e

*** empty log message ***
author chiaki
date Sun, 17 Feb 2008 23:07:52 +0900
parents 0c8ae614d421
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
1 #include <iostream>
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
2 #include <SDL.h>
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
3 using namespace std;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
4
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
5 void write_pixel(int x, int y)
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
6 {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
7 int i;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
8 for (i=0; i<height; i++)
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
9 {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
10 pixels[i*width] = 0xff;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
11 }
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
12
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
13 }