D
D
DeOxygen2020-09-18 16:27:28
C++ / C#
DeOxygen, 2020-09-18 16:27:28

How to create a pixel editor?

Basically, I'm building a simple editor, and I'm stuck on rendering pixels. SFML.
I made my own canvas and rendered a matrix on it by VertexArray but ran into performance issues. Looks like I went in the wrong direction.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DeOxygen, 2020-09-18
@DeOxygen

Well, I figured it out myself. In my opinion, work through sf::Image remained a better option. And processing Viewport. I got the coordinates via mapPixelsToCoords.

D
Dmitry Pavlov, 2020-09-18
@Stalker31

Maybe you should use DirectX/Vulkan/OpenGL , but it depends on where the performance hits and where the problems occur.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question