Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jjeeffff

need help in masm, cant copy texure

This topic is 5261 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What me do? ... bind emptytexture invoke glGenTextures, 1, ADDR copytexture invoke glBindTexture, GL_TEXTURE_2D, copytexture invoke glTexImage2D, GL_TEXTURE_2D, 0, 4, 128, 128,\ 0, GL_RGBA, GL_UNSIGNED_BYTE, offset gener2 invoke glTexParameteri, GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR invoke glTexParameteri, GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ... gentex proc ; generate texure invoke glGenTextures, 1, ADDR copytexture invoke glEnable, GL_TEXTURE_2D invoke glBindTexture, GL_TEXTURE_2D, copytexture invoke glCopyTexImage2D, GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, 128, 128, 1 ret gentex endp and i try draw quad with copied texture, but texture all white

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!