Mapeditor

Started by
0 comments, last by Kackurot 20 years, 5 months ago
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]
Advertisement
Could you reword your question?
Half the people you know are below average.Trogdor the Burninator
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])

This topic is closed to new replies.

Advertisement