Skip to main content

Questions tagged [spritebatch]

A group of sprites that can all be drawn with the same settings

0 votes
1 answer
407 views

I'm encountering a design challenge while developing my 2D C++ OpenGL engine. I'm using a batching technique for rendering my drawable objects, and I want to ensure they are drawn in the same order ...
DDD's user avatar
  • 11
3 votes
1 answer
78 views

I am drawing a rectangle using a emptytexture (1x1) and I use the following: ...
Alanus Ger's user avatar
0 votes
1 answer
462 views

I'm curently working on a system that make the player character look towards the mouse pointer. My system is effective but i'm having an issue while displaying the rectangle. In the Following code i ...
Loé B.'s user avatar
  • 35
0 votes
1 answer
143 views

I draw a TiledMap with TiledSharp and i've introduced a resize factor when drawing, that looks like this: ...
Loé B.'s user avatar
  • 35
0 votes
0 answers
191 views

Right now, im using DirectXTK (version 2020.2.24.4) and Visual Studio 2019. My declarations look like this: ...
Goldy's user avatar
  • 1
0 votes
1 answer
429 views

By default the SpriteBatch instance used is instantiated in the LoadContent method of Game1. ...
Steven's user avatar
  • 3
0 votes
1 answer
210 views

I have code that changes texture in each frame depending on the player's state - walking, idle. My problem is that the idle texture (from separate png) has a slightly different size, and due to that ...
new User's user avatar
0 votes
1 answer
300 views

I used TexturePacker to create an atlas for me and I've read it into my game. I can use unrotated and untrimmed sprites and it works fine. Now I would like to support trimmed sprites and I'm running ...
101010's user avatar
  • 209
2 votes
1 answer
911 views

I'm working on developing a game with C++, SDL, and OpenGL. I created the engine from scratch, and implemented my own state machine to handle menus and general gameplay. Each State gets pushed into a ...
MathPRG's user avatar
  • 23
3 votes
1 answer
2k views

I'm programming a 2D game libgdx. I'm using a SpriteBatch of course to draw some Sprites. Now I wanted to use multiple ...
mrdlink's user avatar
  • 31
1 vote
1 answer
455 views

I am designing a Spritebatch class, for static and dynamic objects with WebGL. A problem I'm facing is that I have read several different opinions on sprite batching but with one goal. Put all ...
greedsin's user avatar
  • 118
1 vote
1 answer
686 views

I'm trying to implement a frame rate feature, and I have noticed that using 60 frames per second causes the screen to leave a drawn trail of textures, when there is movement. Here's the code I'm ...
Daniel's user avatar
  • 11
0 votes
1 answer
359 views

I am using the LibGDX library to render a 3D model in my Android application. Now, I am stuck, where I want to render multiple dynamic texts on to different 3D boxes located on different coordinates ...
Ankit Gupta's user avatar
1 vote
0 answers
127 views

I'm making a game in libGDX wich the main focus is "recursion", so I can play multiple instances of the game in itself, flowing through "layers" of games. Currently its mechanics work perfectly, but I'...
vilok600's user avatar
0 votes
1 answer
171 views

I have a sprite like this. I want to draw this sprite in such a way that sprite is growing from bottom to top, using sprite batch on tap.for that,I have written the following code: ...
Niranjana's user avatar
  • 123

15 30 50 per page
1
2 3 4 5
9