graphic function with memset()
I'm trying to write a graphic function with memset in c++, but i can't get the memset function to compile. I keep getting the message "can't convert from int to void*"
void screenSet(int color) { //int color is a number between 0 and 255
int screen = 0xa000;
memset(screen, color, 0xffff);//0xffff = 64000
}
I'm trying to fill the screen with a certain color, but can't get past the first argument of memset().
Can anyone tell me what I'm doing wrong and how I could get the results that I'm looking for??
any tips in the right direction would be great! thanks
giuseppe
|