SYS_GetFontTexture & SYS_GetFontTexel

shagkur
Posts: 53
Joined: Thu Sep 08, 2005 8:40 pm

Re: SYS_GetFontTexture & SYS_GetFontTexel

Post by shagkur » Wed Jan 28, 2009 1:12 pm

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

Eke
Posts: 64
Joined: Sat Mar 01, 2008 11:01 am

Re: SYS_GetFontTexture & SYS_GetFontTexel

Post by Eke » Wed Jan 28, 2009 2:32 pm

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

shagkur
Posts: 53
Joined: Thu Sep 08, 2005 8:40 pm

Re: SYS_GetFontTexture & SYS_GetFontTexel

Post by shagkur » Wed Jan 28, 2009 2:57 pm

yeah, you're right. i should look twice before i post stupid questions :/

thanks alot for your help.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests