Questions tagged [ftgl]

A font rendering library for OpenGL

41 questions
1
vote
0 answers

How to load font file from assets when use android ndk

I succeeded in loading ftgles library on android. But I can not rendering fonts. I think that it has problem when load the font file (.ttf file) How could I load the font file from assets? this is initialize part AAssetManager* manager =…
no name
  • 51
  • 6
1
vote
1 answer

Text rendered using FTGL not visible

I'm building a rendering engine using OpenGL and I'd like to add a minecraft-like debug overlay. For those of you that don't know what I'm talking about: I'm using FTGL to do the font rendering, and I'm using this code (I'm also rendering a few…
shmoo6000
  • 495
  • 4
  • 22
1
vote
2 answers

Drawing text with shadow in OpenGL + FTGL

I'm drawing text in OpenGL using FTGL library and everything works just fine, however I would like to add shadow to the text. What I tried is drawing same text with black color and then draw text above that with normal color like this…
Alexander Voloshyn
  • 924
  • 2
  • 8
  • 21
1
vote
1 answer

error undefined reference to `FTExtrudeFont::FTExtrudeFont(char const*)'

while I am compiling my opengl code I am facing this error.how to remove this? all: sample2D sample2D: Sample_GL3_2D.cpp glad.c g++ -o sample2D Sample_GL3_2D.cpp glad.c -lGL -lglfw -ldl -std=c++11 clean: rm sample2D this is my…
vanquishers
  • 358
  • 1
  • 3
  • 18
1
vote
0 answers

FTGL 3D Text issues

I am currently working on an engine that involves creating 3D objects such as boxes and spheres. My next task is to create 3D Text inside as an object. I am using Visual Studio 2012, OpenGL, Qt, FreeType2, and FTGL in C++ on a Windows 7 computer. I…
Matt
  • 11
  • 2
1
vote
1 answer

Undefined symbol in static library, but exists when in same VS solution

I have a weird linker error that I can't seem to straighten out. This project is actually a Windows port of our system on Linux, so we know everything is working before the port to Windows. I'm compiling FTGL (OpenGL font lib) as a static library…
walshy002000
  • 99
  • 1
  • 10
1
vote
2 answers

How to show text fixed position 2d using FTGL?

I would like to show some text (a player score and number of lives left) on the top left corner of my panel. My game is is a pinball game running in openGL, and I would like to use FTGL to show the text. My code looks like this FTGLTextureFont…
David Gourde
  • 3,709
  • 2
  • 31
  • 65
1
vote
1 answer

FTGL: Characters do not show up on rendering

My application does some text output with OpenGL and FTGL. I set up a font like this: Impl::font = new FTTextureFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"); if (Impl::font->Error() != 0) { delete Impl::font; throw…
flyx
  • 35,506
  • 7
  • 89
  • 126
1
vote
0 answers

Is there a way to put in a buffer FBO texture output format GL_ALPHA?

I am using ftgl font library. ftgl function to create image has this code: glBindTexture(GL_TEXTURE_2D, textID); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,…
manking
  • 396
  • 1
  • 6
  • 21
1
vote
2 answers

Creating object by using new operator causes unresolved external symbol error C++ FTGL

I'm using FTGL library in my Microsoft Visual Studio 2012, C++ project. I finally managed to properly link it to my project as I can properly render a font by using: FTGLPixmapFont font("C:/Windows/Fonts/Arial.ttf"); font.Render("Hello…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
0
votes
1 answer

FTGL undefined references everywere?

I was trying to use this library to output text on a OpenGL application so far I got a prcompiled library so it would be easier to me to get started so this the code: #include #include ... ... int main( int argc,…
Leandro
  • 183
  • 1
  • 2
  • 10
0
votes
1 answer

Unable to link FreeType 2 library using MinGW; ld.exe: cannot find -lfreetype

I am compiling with MinGW in Windows 7, using Code::Blocks as the IDE. Everything should be up to date. I noticed there are a number of similar questions, but those seemed to be about linking a dynamic library, not compiling the static library. I am…
Kian
  • 1,654
  • 1
  • 14
  • 22
0
votes
0 answers

Installing PyFTGL: distribution not found

I am trying to install PyFTGL, to display text in my OpenGL project. I usually install libraries using pip, but sudo pip3 install PyFTGL returns the following error: Could not find a version that satisfies the requirement PyFTGL (from…
tvoirand
  • 347
  • 1
  • 3
  • 12
0
votes
1 answer

I can't use FTGL (ft2build.h not found)

I wanted to use FTGL library, and I downloaded freetype2 because the compiler said /usr/include/FTGL/ftgl.h:32:10: fatal error: ft2build.h: No such file or directory #include ^~~~~~~~~~~~ compilation teminated. So, I…
Waserabi
  • 1
  • 1
  • 1
0
votes
0 answers

Text rendering not working correctly

so I'm trying to render some text using FTGL, GLFW and GLEW libraries in my C++ engine following this tutorial: https://www.youtube.com/watch?v=Rsdc6I80aFQ. But when I do so where the text should be instead of characters I get triangles of some kind…
Smile
  • 77
  • 2
  • 7