News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Distribution of a masm program

Started by gelatine1, January 29, 2016, 02:29:33 AM

Previous topic - Next topic

gelatine1

Quote from: HSE on January 31, 2016, 01:17:58 AM
Hi Gelatine1!

Now mouse work in full screen, but don't make movements (in any mode). Only the face selected change color ( in some cases become Gray).

Regards. HSE
Oh yes that's just a variable called 'edit'. change the value to 0 and build again and the faces will turn. I should make it so one can change it from inside the program though...

Quote from: Siekmanski on January 31, 2016, 01:23:13 AM
Same here, no color change.

I can't really think of what might be wrong then ... Maybe something specific with your graphics card or I don't know :/

Siekmanski

Yeah, I can't find it either.
I only checked the alpha values not the whole source code, when I fill all alpha values with zero it reads 255 back.
Creative coders use backward thinking techniques as a strategy.

HSE

Equations in Assembly: SmplMath

Siekmanski

I had to know why glReadPixels always returned an alpha value of 255 on my PC.
Finally found out why.  :biggrin:

Video cards need the PIXELFORMATDESCRIPTOR.cAlphaBits set to 8.
Some work if cAlphaBits is set to 0.

And you do not need the alphaBlend functions to read the alpha values.

Made an example to check it.
Creative coders use backward thinking techniques as a strategy.

gelatine1

So changing PIXELFORMATDESCRIPTOR.cAlphaBits to 8 is the only thing to do to make it work right ? Thanks alot for helping by the way! I've been looking through the files you posted and i was wondering what's the .rap file ?
You're a very good programmer ;)

Siekmanski

Yes, that must be the solution.
The .rap file is the project file for RadASM.
That's the programming environment I use.
Creative coders use backward thinking techniques as a strategy.