How can I plot pixels on a Direct3D Texture ?? I simply do that:
unsigned char color = 64;
unsigned char* bits = (unsigned char*)TextureSurface;
bits[y*pitch+x] = unsigned char color;
The texture is 8-Bit Palettized. The Texture has a greyscale palette.
On Voodoo cards, this works fine, but on my TNT I get strange colors. I think that is, because the TNT cannot use 8-Bit. How can I plot pixels for the TNT.
If this would work, I only could use 8-Bit. What about 16-Bit Textures, for example RGB565. How can I plot pixels in this texture-format ??
Thanks, Phillip