Hello. In my last post on sdl, I asked if I can just use c++ or c# just to make the game. However, I stumbled upon graphic api's Metal from apple and vulkan from khronos. Will I be able to render my spine animations with these 2 api's using spine-cpp?
Graphics api support for spine-cpp?
Sure, spine-cpp can be used with any C++ based graphics toolkit.
If your goal is to make a game, I would suggest using an existing game toolkit that already has Spine Runtime support. It's hard enough to finish a project, even without starting subprojects.
The spine-cpp docs have a section on how to integrate spine-cpp with your own engine/rendering framework. As long as you can draw blended, textured triangles, it should be pretty simple, be that with Metal, Vulkan, OpenGL, etc.
But isn't sdl_renderer in opengl only?
There's nothing about sdl_renderer
in the docs Mario linked?
Sorry I've should've been more specific. I meant was sdl_renderer from spine-sdl opengl only? I thought that if I use the sdl_renderer, I'd be using opengl with it
SDL is a game toolkit that provides an API for rendering and other functionality. It supports many graphics backends: OpenGL, Vulkan, Metal, Direct3D11. SDL apps use only the SDL API, not a specific backend, so any SDL app should be able to run on any of the backends. Similarly, spine-sdl uses only the SDL API (for example that uses SDL_RenderGeometry), so it will work with any graphics backend SDL supports.
Oh I think I get it now. So the sdl_renderer uses the sdl api only and not opengl?
Yep!
That's crazy! I thought for sure that uses opengl but I stand corrected. So I can just use sdl_renderer without opengl or any other api?
You an use sdl_renderer without having to also call OpenGL yourself. However, sdl_renderer will use OpenGL, Metal, DirectX and so on under the hood.
I think that was explained above. You would probably get better SDL information from the SDL site/documentation/forums.
I think I'll go with spine-cpp because of the framework idea. So I follow that spine cpp for the rendering?
spine-cpp itself does no rendering. You can use one of the existing runtimes likes spine-sdl, spine-sfml, or spine-cocos2dx, which build on top of spine-cpp, and use the corresponding framework/engine (SDL, SFML, Cocos2d-X) for rendering. Or you can build your own renderer on top of spine-cpp.
- संपादित
Hey sorry for this. But above in this discussion, a rendered blended triangle was mentioned and the entire time i got confused on what that is. So I did some digging around and found a site called learnopengl.com and found this <links removed>. Is this what you were trying to explain?
In this other thread you've asked a bunch of questions that were answered above months ago:
https://esotericsoftware.com/forum/d/25007-spine-cpp-runtime-for-self-developed-renderer/13
Go and read the code mentioned. Try running it. It seems you are unfamiliar with rendering. Go learn how that works. If you have specific questions on something related to Spine, you can start a new thread. If you need to learn rendering first, that is not related to Spine and I'm afraid you'll have to post elsewhere.
I can't tell if you are a bot, but we're not going to keep answering the same questions repeatedly when it seems you do not put in sufficient effort on your own. You posted links and while the topic is related, your behavior is already suspect so I have deleted them and will lock this thread. In future posts if your humanity is questionable again we will have to ban you.