[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] freetype opengl texture
From: |
Christian Demmer |
Subject: |
Re: [ft-devel] freetype opengl texture |
Date: |
Fri, 10 Aug 2007 10:22:26 +0200 |
zill wrote:
>
>I'm still getting a white square which is leading me to believe that there is
>something wrong with the FreeType code. I should be able to figure out the
>gl code as soon as I can figure out how to get the FreeType to work. I
>don't see what I'm doing wrong since I followed the explanation word for
>word. But obviously there is something.
>
>
>
>David Turner-5 wrote:
>>
>> what is the result of using:
>>
>> glTexImage2D(GL_TEXTURE_2D, 0, 1, 30, 30, 0, GL_ALPHA, GL_UNSIGNED_BYTE,
>>>> &ft_face->glyph->bitmap);
Should this be &ft_face->glyph->bitmap->buffer?
And texture width and height needs to be a power of 2 for GL_TEXTURE_2D
target. Othwerwise use texture rectangle extension or something like
that.
Greetings, Christian
- [ft-devel] freetype opengl texture, zill, 2007/08/09
- Re: [ft-devel] freetype opengl texture, David Turner, 2007/08/09
- Re: [ft-devel] freetype opengl texture, zill, 2007/08/09
- Re: [ft-devel] freetype opengl texture, David Turner, 2007/08/09
- Re: [ft-devel] freetype opengl texture, zill, 2007/08/09
- Re: [ft-devel] freetype opengl texture,
Christian Demmer <=
- Re: [ft-devel] freetype opengl texture, zill, 2007/08/10
- Re: [ft-devel] freetype opengl texture, Christian Demmer, 2007/08/10
- Re: [ft-devel] freetype opengl texture, zill, 2007/08/10
- Re: [ft-devel] freetype opengl texture, zill, 2007/08/10