Using SDL_ttf with OpenGL

I'm using OpenGL and SDL to create a window in my program. How do I use SDL_ttf with an OpenGL window? For example I want to load a font and render some text. I want to draw the text using an SDL...

Installation of pygame with Anaconda

I have Anaconda 1.6.2, which uses Python 2.7.5, installed on a Windows 7 64-bit system. I need to install Pygame 1.9.1 and this is not part of the conda repository. I cannot run the Windows...

How to render text in SDL2?

I'm using an SDL_Window and SDL_Renderer. Is it possible to use SDL_TTF with SDL_Render/SDL_Window? If so, how?

About Python pygame font.SysFont

font = pygame.font.Font.render(None, 25) def message_to_screen(msg, color): screen_text = font.render(msg, True, color) screen.blit(screen_text, [display_width/2,...

Not able to install pygame module in windows

I am trying to install pygame using pip install pygame but it does not work... C:\Python27\pygame-1.9.1release>pip install pygame 'pip' is not recognized as an internal or external...

Memory leak while using SDL2 Texture

I am in the progress of making a game which uses SDL_TTF and SDL_Image. I have one function called browseinventory which allows you to check out the stats of an item once you hover over it. That's...

Where is pygame folder on mac if installed python and pygame via homebrew?

I used this tutorial here. for pygame istallation on mac. The tutorial is good and I installed it all using hombrew - git, mercurial, sgl dependencies and python, pygame. The instructions were...

Error multiple definition when compiling using headers

I am having a lot of trouble with my header files and the compilation. I have everything linked with header guards but for some reason I am still getting a lot of multiple definition errors. I'm...

SDL2_TTF on Ubuntu: /usr/bin/ld: cannot find -lSDL2_ttf

I've looked at several possible solutions to try to fix this, but I'm still having the following issue with drawing text with SDL_ttf and SDL2. [email protected]:~/Documents/SDL/Font Demo/pt2$...

Detect text selection with SDL_ttf 2

I would like to implement a simple input box with SDL and SDL_ttf. Just like the address bar in your browser. I'm guessing what is the easiest and most efficient way to detect a mouse selection...

kivy requirements issue buildozer

im trying to learn kivy so i downloaded kivy virtual machine and copy this hello world app and i run into this problem. i have search the internet but nothing useful i tried to upgrade cython i...

How do i convert p4a distribution to apk?

I have a simple python-kivy program that I finally got python-for-android to run all the way through. One of the last things p4a kicked out was: Dist can be found at (for now)...

Why are my SDL_ttf fonts so pixelated and ugly? Are there better ways of rendering fonts?

Here is an example: Here is the corresponding code: TTF_Font *Sans = TTF_OpenFont("resources/fonts/lato/Lato-Semibold.ttf", 36); if( Sans == NULL ) { std::cout << "Failed to load...

How to fix "The Procedure entry point SDL_ceilf could not be located in the dynamic link library"

Im making a game in SDL2 and for the text i need to include SDL2_ttf.h. But when I start to run the program it give me the error: "Entry Point Not Found" "Entry Point Not Found" I downloaded the...

How to load file font into RAM using C/C++ and SDL2?

Accordingly to the ''best practices'' I have learned, we should load the resources we need to our programs into RAM, avoiding unnecessary requests to user's hard drive. Using SDL2, I always free...

How to fix "The code execution cannot proceed because SDL2_ttf.dll was not found. Reinstalling the program may fix this problem."

I am trying to use sdl_ttf to display text in a window, but when I run my program, an error window pops up and says what the title says above. I have put SDL2_ttf.dll into the debug folder like I...

How to fix error code 1 installing PyGame on MacOS 10.7.5?

Got error code 1 while attempting to install PyGame on MacOS 10.7.5. Upgraded setuptools, pip to latest version. Same thing. Running python 3.7. Collecting pygame Using cached...

C# SDL2.SDL_ttf.TTF_Init returning an error on the user's machine

My project (executable file) works fine on my machine, but for some reason, on the user's machine program just can't start. Here is the error that I find in windows logs (sry it's on Russian but...

Blank screen after rendering text

I have opened a window which shows two rects on the screen then using SDL_TTF to show the mouse position on the screen. The bit I am having hard time understanding is why after rendering text the...

buildozer "debug andriod debug "

I'm trying to convert my kivy project to APK using buildozer on ubuntu 18.04 and when i run "buildozer andriod debug" every thing work well until i get the following...

Building AGG in msys2 causes error Invalid configuration `x86_64-pc-msys': system `msys' not recognized

I want to install pypotrace. To this end I'm following this tutorial. However when I get to the line ./autogen.sh; make I get the error: (specifically the line): I extracted both packages...

Python Kivy build error on windows ubuntu

My environment: python : 3.6.9 sys : Windows10 Ubuntu my error: # Check configuration tokens # Ensure build layout # Check configuration tokens # Preparing build # Check requirements for...

missing DLL - freetype262d.dll

I'm making a simple 2D game engine in C++ and to write text on the screen I want to use SDL_ttf. The problem is that after I installed SDL_ttf an error message pops up saying that freetype262d.dll...

Pygame Is Installed Properly, But Why Does It Not Display Anything?

Fellow human beings! I have recently installed pygame, following the awesome guide made by Bryson Payne that you can find here . I installed all of the following dependencies and programs, as per...

Installing pygame problem "Microsoft Visual C++ 14.1 is required"

I tried to install pygame but i get this error: distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.1 is required. Get it with "Microsoft Visual C++ Build Tools":...

C realloc error: malloc(): invalid size (unsorted)

I am currently making a sdl2(/graphical) version of the game of life in C, so when the screen is resized I need to update the grid. When the screen is resized I don't want it to just change the...

pygame py2app Library not loaded: @loader_path/.dylibs/libSDL-1.2.0.dylib

I wouldn't call myself a programmer and am unfamiliar with Mac and Linux, so any links or pointers to additional background would help greatly. I've started with the most basic pygame I could...

Can't build SSDL from the source code of the book C++ for the Lazy Programmers

I can't compile the SSDL source code from the book C++ for the Lazy Programmers (2019) by Will Briggs on my ubuntu 20x so could you please tell me what goes wrong? I installed SDL2 and it's...

Installing pygame fails on local file

I am trying for a while now to install pygame into my Project but whatever I try is doesn’t work. The real frustrating part is that I managed to do it in the past. Witch might be the problem,...

The application was unable to start correctly 0xc00007b for an SDL2 application

I am building an SDL application on my x64 Windows 10 machine using Visual Studio. I have set up the include/library/additional dependencies following this tutorial. Everything works fine until I...