[ft-devel] freetype opengl texture

2007-08-09 Thread zill
I loaded the glyph exactly how freetype explains: FT_UInt glyph_index = FT_Get_Char_Index(ft_face, c); FT_UInt error = FT_Load_Glyph(ft_face, glyph_index, FT_LOAD_DEFAULT); if (error) { return false } error = FT_Render_Glyph(ft_face->glyph, FT_RENDER_MODE_NORMAL); if (error) { return false } glG

Re: [ft-devel] freetype opengl texture

2007-08-09 Thread David Turner
Hello, I thought the documentation made it clear that FT_RENDER_MODE_NORMAL corresponds to 8-bit gray maps with 256 levels of "gray" see: http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Render_Mode hope this helps, - David On Thu, 9 Aug 2007 10:00:28 -0700 (PDT), "

Re: [ft-devel] freetype opengl texture

2007-08-09 Thread zill
I'm still pretty confused then. First, I changed to FT_RENDER_MODE_LCD because I don't see where what type I would use for a 256 gray scale. I'm also using GL_RGB. From the description I read, it seems that should work, but I'm just getting a plain white square. It seems that nothing is happen

Re: [ft-devel] freetype opengl texture

2007-08-09 Thread David Turner
what is the result of using: glTexImage2D(GL_TEXTURE_2D, 0, 1, 30, 30, 0, GL_ALPHA, GL_UNSIGNED_BYTE, >> &ft_face->glyph->bitmap); with a FT_RENDER_MODE_NORMAL ? Just trying to guess something that might help you - David On Thu, 9 Aug 2007 15:08:29 -0700 (PDT), "zill" <[EMAIL PROTECTED]> said

Re: [ft-devel] freetype opengl texture

2007-08-09 Thread zill
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