Blitz3D buffer and C++ ?

Blitz3D Forums/Blitz3D Programming/Blitz3D buffer and C++ ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

OJay: I thought 'Texture' is the handle to the internal blitz structure and TextureBuffer(Texture) returns the actual pointer to the buffer. If not, what's the point of the TextureBuffer() function?


Texture buffer returns an internal Blitz pixel buffer. When you lock the texture it creates a pixel buffer and gives it to the user, and when it's unlocked the data is sent back to the texture. The abstraction is what allows you to use WritePixel/etc. on buffers without having to use WriteTexturePixel or WriteImagePixel and whatnot. This is all based on the assumption that Blitz3D works in a logical and abstracted manner. If I'm wrong, then god have mercy on Mark's soul.