Skip to content

add Image::setImageFromMem#159

Open
FaultyPine wants to merge 1 commit intonatinusala:mainfrom
FaultyPine:main
Open

add Image::setImageFromMem#159
FaultyPine wants to merge 1 commit intonatinusala:mainfrom
FaultyPine:main

Conversation

@FaultyPine
Copy link
Copy Markdown

Allows images to be set from raw data

Allows images to be set from raw data
Copy link
Copy Markdown
Owner

@natinusala natinusala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! It looks good to me

Do you think you could add a way to test / showcase this in the demo?

this->texture = nvgCreateImageMem(vg, 0, data, size);

if (this->texture == 0)
fatal("Cannot load image from mem!");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for an exclamation mark :p

@EmmmaTech
Copy link
Copy Markdown
Contributor

As natinusala said, you should really add an demonstration of this in the demo

@EmmmaTech
Copy link
Copy Markdown
Contributor

Otherwise, no other problems

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.

3 participants