Search found 326 matches
- 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/...
- 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...
- Mar 14, 2007 22:37
- Forum: General
- Topic: Alpha issue put,circle,paint and a few more (0.17cvs 6mars)
- Replies: 16
- Views: 7094
- 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...
- 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...
- 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.
There's an example in the wiki page on ScreenControl to do exactly this.
- 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...
- 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.
Also, you can now retrieve the list of supported GL extensions via GET_GL_EXTENSIONS passed to ScreenControl.
- 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...
- 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...
- 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 ...
- 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...
- Dec 18, 2006 10:22
- Forum: General
- Topic: Alpha mode
- Replies: 19
- Views: 8215
- 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...
- 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...