Skip to main content
GameDev.net gamedev.net
🔒 Locked

Mapeditor

Started by Kackurot Nov 17, 2003 at 12:53 AM 0 replies 350+ views
Original Post
Kackurot
Kackurot
Im having trouble trying to make an map editor with opengl. I want to know how to split a texture up into tiles. Does anyone know how to plit up an texture? ny tile sizes are 32x32 64x64 and so on..
[file:///C:/My%20Documents/kack.gif]
krez
krez
texture coordinates range from (0.0f, 0.0f) to (1.0f, 1.0f)... so just divide your tile size by the texture width or height (in pixels) to get a scaled number from 0 to 1.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.