[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] freetype opengl texture
From: |
zill |
Subject: |
Re: [ft-devel] freetype opengl texture |
Date: |
Fri, 10 Aug 2007 09:38:41 -0700 (PDT) |
FreeType specifically says it should be glyph->bitmap and if I change it, it
throws all kind of errors at me. I changed to the power of two, and it is
still giving me blank images, not that that would cause that anyways. Why
is nothing being stored in the bitmap?
Christian Demmer wrote:
>
> 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
>
>
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/freetype-devel
>
>
--
View this message in context:
http://www.nabble.com/freetype-opengl-texture-tf4243821.html#a12094867
Sent from the Freetype - Dev mailing list archive at Nabble.com.
- [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, 2007/08/10
- Re: [ft-devel] freetype opengl texture,
zill <=
- 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