View Full Version : Streaming bitmap data for textures via Socket
04-17-2011, 01:59 AM
Hi Guys.I am a beginner in OpenGL and C++ in general.Would like to get an advice for the best way to load bitmap data for textures in OpenGL from Socket stream.I am learning WinSock API but it would be helpful to get an advice on some industry standard pipeline or additional APIs for image data reading from the socket streams.
Thanks a lot .
04-17-2011, 02:33 AM
Would like to get an advice for the best way to load bitmap data for textures in OpenGL from Socket stream.
The same way you would load image data from disk. Or generate image data from an algorithm.
OpenGL takes image data as memory pointers; OpenGL neither knows nor cares where the image data was before it was in memory. Therefore, what you need to concern yourself with is getting the image data from the socket and making sure that it is properly formatted (endian-ness, etc).
05-04-2011, 08:08 AM
Thanks for the tip .
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.