Search found 8 matches

by Voidy
Wed Jun 05, 2024 8:47 am
Forum: Game Programming
Topic: Sprite brightness
Replies: 8
Views: 7183

Re: Sprite brightness

You're right. There are people who are lazy and ask questions about every little thing instead of using Google first, but I'm not like that.
Thank you for the url.
Have a nice day :)
by Voidy
Tue Jun 04, 2024 9:41 am
Forum: Game Programming
Topic: Sprite brightness
Replies: 8
Views: 7183

Re: Sprite brightness

What kind of answer is that?!
1. I did research, but when I get stuck, I need help.
2. Why does the forum exist if you're not allowed to ask questions?! As if you never asked any questions. -.-
by Voidy
Thu May 30, 2024 8:39 am
Forum: Game Programming
Topic: Sprite brightness
Replies: 8
Views: 7183

Re: Sprite brightness

Thank you :)
Unfortunately, PureBasic doesn't have that many 2D sprite functions. Can I import from DirectX11? Is there a example code?
by Voidy
Thu May 30, 2024 8:38 am
Forum: Game Programming
Topic: I need Description for SpriteBlendingMode constants
Replies: 8
Views: 6705

Re: I need Description for SpriteBlendingMode constants

Thank you STARGÅTE! Perfect example!
by Voidy
Wed May 29, 2024 9:59 am
Forum: Game Programming
Topic: I need Description for SpriteBlendingMode constants
Replies: 8
Views: 6705

Re: I need Description for SpriteBlendingMode constants

Thank you

But there is no explanation of what that means, just values ​​e.g. (1 - Rₛ, 1 - Gₛ, 1 - Bₛ, 1 - Aₛ).
I need an understandable explanation. Example:
#PB_Sprite_BlendOne (GL_ONE / D3DBLEND_ONE): The colors become brighter.
by Voidy
Wed May 29, 2024 9:31 am
Forum: Game Programming
Topic: I need Description for SpriteBlendingMode constants
Replies: 8
Views: 6705

I need Description for SpriteBlendingMode constants

I need a description of what each constant does:

#PB_Sprite_BlendZero: ?
#PB_Sprite_BlendOne: ?
#PB_Sprite_BlendSourceColor: ?
#PB_Sprite_BlendInvertSourceColor: ?
#PB_Sprite_BlendDestinationColor: ?
#PB_Sprite_BlendInvertDestinationColor: ?
#PB_Sprite_BlendSourceAlpha: ?
#PB_Sprite ...
by Voidy
Wed May 29, 2024 9:31 am
Forum: Game Programming
Topic: Sprite brightness
Replies: 8
Views: 7183

Re: Sprite brightness

Thanks for your help. I can't find a thread with the example code.
by Voidy
Tue May 28, 2024 1:28 pm
Forum: Game Programming
Topic: Sprite brightness
Replies: 8
Views: 7183

Sprite brightness

How can I change the brightness of my 2D sprite? I only found DisplayTransparentSprite for transparency but not for brightness.