Advertisement

sockets and opengl

Started by February 22, 2003 09:17 AM
1 comment, last by ts0 22 years ago
i want to use sockets and opengl. there is a raw-socket sniffer which should run and if there is for example much traffic a cube or whatever should rotate. how is this possible? i mean i have the sniff-thing and the cube but how can i use this together? THX FOR HELP -------- ts0
--------ts0

It would probably go like this :

    void render_scene(){// clear buffers// reset modelview matrixstatic double angle = 0;if (sniffer.lotsOfTraffic())angle += 0.25;glRotated(angle,0,1,0);DrawCube();//swap buffers}    


[edited by - George2 on February 22, 2003 10:35:07 AM]
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
Advertisement
but i have to run the sniffer-thing too.

so where should i put this.

if i put this at the wrong place there is no cube coming...

THX

--------
ts0
--------ts0

This topic is closed to new replies.

Advertisement