JBeurer
  • Member for 10 years, 5 months
  • Last seen more than 1 year ago
C# OpenTK Text rendering
6 votes

There's nothing particularly special in how font rendering is handled in OpenTK. OpenTK - among other things - contains an OpenGL wrapper. And as such any techniques you'd use to render text in ...

View answer
How do I sort with both depth and y-axis in OpenGL?
4 votes

You'll need An orthogonal Projection Matrix. In fixed pipeline openGL: glOrtho(0, screen_width, screen_height, 0, -(1<<16), 1<<16) A wrapper function similar to: DrawSprite(int x, int y, ...

View answer
C++ - How to create an engine editor without frameworks like qt and wxWidgets?
Accepted answer
3 votes

If you don't want to use frameworks like qt, wxWidgets, then you'll have to either: Use the platform windowing API (WINAPI, XLib, Cocoa). Write your own widget toolkit and render it yourself using ...

View answer
How to handle collision detection & response in voxel engine with slopes?
3 votes

There is a fairly simple way to do collision detection between a single "voxel shape" and an AABB. It relies on the SAT (separating axis theorem) - finding a plane which separates both objects. As ...

View answer
How do I enable FSAA in OpenTK?
1 votes

It's in the constructor of GraphicsMode: new GameWindow(1280, 800, new GraphicsMode(new ColorFormat(8, 8, 8, 0), 24, // Depth bits 8, // Stencil bits 4 // FSAA samples ...

View answer
How to combine dynamic asset reload and texture atlases? (rectangle packing with removal)
Accepted answer
1 votes

I ended up implementing a Guillotine rectangle packing algorithm (with heuristic for picking free rectangles with smallest area) GUILLOTINE-BAF with some modifications: When a texture gets removed - ...

View answer
how is c useful in game development
1 votes

C is a subset of C++. C is small and lean - a manageable subset of C++. C++ on the other hand is huge and can be very confusing, with many questionable features and design decisions. C++ standard is ...

View answer
How do I prevent clicking at the end of each sound play in OpenAL?
1 votes

You are leaking memory each time a sound is being played. You might consider: Making a class for a SoundBuffer. Loading all sounds after OpenAL is initialized (after you have created the ...

View answer