Original Post
🔒 Locked
TEXTURE FILL problem
Advertisement
First create a texture of the same size.
Then lock it.
Make sure you know the format of the texture e.g. A8R8G8B8 and get the pitch right. The pitch varies, you get the value when you lock the texture.
Loop through your values, setting the corresponding texture values.
Unlock the texture.
Then lock it.
Make sure you know the format of the texture e.g. A8R8G8B8 and get the pitch right. The pitch varies, you get the value when you lock the texture.
Loop through your values, setting the corresponding texture values.
Unlock the texture.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement