Hi,
So I made a very very simple renderer that just takes a texture and renderers with the given x,y,width and height coordinates. the texture class contains an vector with the pixels(r,g,b,a), and the height and width of the texture. It is very limited, I know. But is it enough to render ImGui? I never made a render implementation before, so I don't quite know what it needs.
Thanks!

Hello @Tim4135,
Have you looked at how the imgui examples renderers are implemented?
There are 10 renderers provided in the examples/ folder which could answer your question.
Have you read the programmer guide in imgui.cpp?
It has a section called "THIS HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE" which explain what you need to do.
You need to render textured triangles with rectangular scissor/clipping support. This is written in maybe a dozen different places in the various comments and examples. Rendering textured triangles is what GPU hardware are good and most-natural at. If you are creating a software rasterizer it will be harder to do it than if using traditional graphics API such as OpenGL, DirectX, Vulkan etc.
Please try to be a little more considerate when asking questions (not your first time), if you intend to implement something you should do the minimum amount of research before asking! Thank you,
-Omar
So ImGUi creates a list of 2d meshes, and textures. Are they also multiple textures, or do the meshes have texture coordinates and one texture?
What if my renderer doesn't support meshes(2d or 3d) yet?
Most helpful comment
Hello @Tim4135,
Have you looked at how the imgui examples renderers are implemented?
There are 10 renderers provided in the examples/ folder which could answer your question.
Have you read the programmer guide in imgui.cpp?
It has a section called "THIS HOW A SIMPLE RENDERING FUNCTION MAY LOOK LIKE" which explain what you need to do.
You need to render textured triangles with rectangular scissor/clipping support. This is written in maybe a dozen different places in the various comments and examples. Rendering textured triangles is what GPU hardware are good and most-natural at. If you are creating a software rasterizer it will be harder to do it than if using traditional graphics API such as OpenGL, DirectX, Vulkan etc.
Please try to be a little more considerate when asking questions (not your first time), if you intend to implement something you should do the minimum amount of research before asking! Thank you,
-Omar