Hi,
thanks for the test. I'll take the 1st way of implmentation (**font_header).
About the xpos += 2: that i really don't get. We do byte-wise copy and 2 I4 pixels are stored in one byte. Won't we only copy every 2nd pixel pair then?
regards
shagkur
SYS_GetFontTexture & SYS_GetFontTexel
Re: SYS_GetFontTexture & SYS_GetFontTexel
nope, because xpos is a pixel counter, not a byte one
since one byte is two pixels, we are copying two pixels on each step so this is not necessary to do this for each pixel but only for each pair of pixels, hence the +2
since one byte is two pixels, we are copying two pixels on each step so this is not necessary to do this for each pixel but only for each pair of pixels, hence the +2
Re: SYS_GetFontTexture & SYS_GetFontTexel
yeah, you're right. i should look twice before i post stupid questions :/
thanks alot for your help.
thanks alot for your help.
Who is online
Users browsing this forum: Google [Bot] and 1 guest