Search found 326 matches

by lillo
Mar 18, 2007 10:09
Forum: General
Topic: Alpha issue put,circle,paint and a few more (0.17cvs 6mars)
Replies: 16
Views: 7094

I am currently ongoing a major change in the PUT code... I've splitted it up a lot and changed the compiler accordingly so that now your EXE will include just the PUT blenders code for the drawing method you actually used (if you used only TRANS there is no need to include the code for OR/AND/ALPHA/...
by lillo
Mar 15, 2007 11:12
Forum: General
Topic: Alpha issue put,circle,paint and a few more (0.17cvs 6mars)
Replies: 16
Views: 7094

Now that I look at it better, I see your alpha blender is custom, and does not work the usual way an alpha blender should look IMHO. I've followed the OpenGL way of doing this, which should be the most comprehensive one. Here's a brief description from NeHe OpenGL lesson 6: (Rs Sr + Rd Dr, Gs Sg + G...
by lillo
Mar 14, 2007 22:37
Forum: General
Topic: Alpha issue put,circle,paint and a few more (0.17cvs 6mars)
Replies: 16
Views: 7094

Ok, I've applied a new fix. This time, alpha is affected by both source and destination alpha if working with 32bpp targets. The way the new alpha value is computed follows the same rules as the other components, basically following the same principle of the OpenGL "glBlendMode(GL_SRC_ALPHA, GL...
by lillo
Mar 06, 2007 15:34
Forum: General
Topic: Alpha issue put,circle,paint and a few more (0.17cvs 6mars)
Replies: 16
Views: 7094

The blue/green circle is drawn correctly: infact you PAINT with a solid color (alpha=255) the inside of the circle, leaving its border with an alpha=100. The red circle issue is indeed a bug. Gfxlib didn't set the destination alpha channel correctly. Right now I've fixed this problem in this way: al...
by lillo
Jan 12, 2007 15:56
Forum: Libraries Questions
Topic: Gfxlib request...
Replies: 11
Views: 5055

Heh, last time I checked, GLFW also didn't support multisample for fullscreen antialiasing, what gfxlib does already :) Anyway, I've added pixel format customization capabilities in the form of additional parameters accepted by ScreenControl; these are the new #defines accepted: #define SET_GL_COLOR...
by lillo
Jan 12, 2007 13:17
Forum: General
Topic: Dragging a window with no frame?
Replies: 1
Views: 1680

You probably want to have a look at ScreenEvent and ScreenControl to get mouse movement deltas and move the window.
There's an example in the wiki page on ScreenControl to do exactly this.
by lillo
Jan 10, 2007 19:47
Forum: Beginners
Topic: INP - OUT in XPSP2
Replies: 19
Views: 6727

acetoline: that is not correct. Under Linux, INP/OUT do indeed work as long as your app is executed with root priviledges. This is because, as you say, the corresponding IN/OUT asm instructions are priviledged, and the OS doesn't allow you to work with them if you don't have the rights to do so. Und...
by lillo
Dec 24, 2006 16:36
Forum: Libraries Questions
Topic: Anti-aliasing in OpenGL?
Replies: 9
Views: 4781

I've just added a function to retrieve GL extension function pointers in a portable way: ScreenGLProc.
Also, you can now retrieve the list of supported GL extensions via GET_GL_EXTENSIONS passed to ScreenControl.
by lillo
Dec 23, 2006 17:25
Forum: General
Topic: lillo. getmouse does not behave as stated in the wiki?
Replies: 11
Views: 3492

This was a regression due to the many internal changes of gfxlib... sorry for the inconvenience. Anyway, I've fixed the issue and now GetMouse returns -1 in all values if the mouse is not on the window. Also, when SetMouse is used to hide the cursor, it is now hidden only in the client area of the w...
by lillo
Dec 23, 2006 15:32
Forum: General
Topic: recommeded joystick?
Replies: 10
Views: 4453

There was already a check to ensure the DirectDraw surfaces were not lost, and in case they were, to restore them. But there was the assumption DirectDraw could have been always successfully re-initialized, what isn't the case when another program has exclusive access (runs in fullscreen)... Fixed i...
by lillo
Dec 19, 2006 9:52
Forum: General
Topic: add mouse clip function...
Replies: 10
Views: 3627

Humm, I think there could be portability problems for such a feature. I mean, normally FB uses the system cursor, and that is allowed to run though the entire screen... Another solution to the range problem is to use ScreenEvent and manually take care of updating the position (in variables local to ...
by lillo
Dec 19, 2006 9:49
Forum: General
Topic: Alpha mode
Replies: 19
Views: 8215

1000101: you are right and that's one thing I should work on... But you know, as all programmers I'm lazy :P Being FB an open source program though, anyone is encouraged to help by providing patches, so if one feel the urge for one feature to be supported ASAP, why not contributing a patch? SotSvart...
by lillo
Dec 18, 2006 10:22
Forum: General
Topic: Alpha mode
Replies: 19
Views: 8215

Hello, I'm back from a small vacation, and it's now time to pop up this thread again :-) After your feedback, I'm now considering a different approach. This "alpha mode" in conclusion is a way to draw to the alpha channel of a sprite... Well, what if we just add a special PUT mode? I mean,...
by lillo
Dec 14, 2006 21:11
Forum: General
Topic: Alpha mode
Replies: 19
Views: 8215

The trick is in libfb_gfx_core.c. When you call any primitive function in Gfxlib, the fb_hPrepareTarget() function from this source file is called, passing in (among other) the pointer to the target buffer where drawing should occur. Internally gfxlib stores the target being used in the last operati...
by lillo
Dec 13, 2006 13:39
Forum: General
Topic: Alpha mode
Replies: 19
Views: 8215

Alpha mode

Hi all, I'm thinking about adding an "alpha mode" to gfxlib. If such a mode is active and the current depth is 32bpp, any primitive will draw just to the alpha channel of the target buffer. Now there are two questions I'd like to expose to you for feedback: 1) How the color passed to the p...