Skip to content

Added outlined texture and material drawing functions#21

Open
filipovskis wants to merge 1 commit into
Srlion:masterfrom
filipovskis:master
Open

Added outlined texture and material drawing functions#21
filipovskis wants to merge 1 commit into
Srlion:masterfrom
filipovskis:master

Conversation

@filipovskis

Copy link
Copy Markdown

Simple as the title, just a couple of new functions that gives new opportunities.

image image

Two new functions:

  • RNDX.DrawMaterialOutlined(r, x, y, w, h, col, mat, thickness, flags)
  • RNDX.DrawTextureOutlined(r, x, y, w, h, col, texture, thickness, flags)

@Srlion

Srlion commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Can't this already be done using the RNDX().Rect()? As I will be rewriting the library with a breaking change to make it be RNDX.Rect() RNDX.Circle() as adding more functions when it can be done in other way is annoying for me

@filipovskis

Copy link
Copy Markdown
Author

Can't this already be done using the RNDX().Rect()? As I will be rewriting the library with a breaking change to make it be RNDX.Rect() RNDX.Circle() as adding more functions when it can be done in other way is annoying for me

I personally do not know, it might be possible, I never used this approach, only helper functions. Those are just helper functions to quickly draw outlines with material applied.

@Srlion

Srlion commented Jul 15, 2026

Copy link
Copy Markdown
Owner

It's simple

RNDX().Rect(100, 100, 250, 120)
    :Rad(12)
    :Material(mat)
    :Outline(2)
    :Color(color_white)
    :Draw()

I will be getting rid of that first call and just make it a table access, and almost all of them are jitted anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants