Hi all, my first post here. I need help
I got a char image [3][256][256] and i have
void display(void){
int iter;
glClear(GL_COLOR_BUFFER_BIT);
glRasterPos2i(0, 0);
for(iter=0; iter<200; iter++){
newimage(&iter, &Image[0][0][0]);//here's the problem
glDrawPixels(ImageWidth, ImageHeight, GL_RGB, GL_UNSIGNED_BYTE, Image);
glutSwapBuffers();
}
}
i need to draw something for later prossesing in parallel
my problem is the newimage function how can i store data to the char Image [3][256][256], i’m supose to use complex numbers to calculate the pixel to draw (that part complex numbers i allready calculate) but how do i store in Image i was trying with glVertex2d, anyone can help me.
Sorry for long post