P
P
PaffosONE2020-04-25 21:56:33
Lua
PaffosONE, 2020-04-25 21:56:33

How to not re-render elements (GLua Hud)?

Hello, such a problem, I wrote a thin one and every frame is drawing all the elements.
But I don’t need something to re-render, let’s say:

surface.SetMaterial( heart_icon )
       surface.SetDrawColor( 255, 255, 255 )
      surface.DrawTexturedRect(w-w+400, h-52, 35, 35 )

How can an element be rendered only once?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question