Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » A little help with open layer

Credits go to Fladimir da Gorf for helping out!
This thread is locked; no one can reply to it. rss feed Print
 1   2 
A little help with open layer
Fladimir da Gorf
Member #1,565
October 2001
avatar

It looks like the transparency of the objects is rendered to the screen. Could you try Canvas::SetPixelWriteMode( COLOR_ONLY ) before drawing the stuff to the screen? If that doesn't work, draw the lense with the COPY_BLENDER.

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

FMC
Member #4,431
March 2004
avatar

With Canvas::SetPixelWriteMode( COLOR_ONLY ) the lens simply doesn't draw
COPY_BLENDER works perfectly thought :)

One last thing there is the fix is the corruption of the lens when the mouse pointer is too near the screen edges and tris to CopyFromScreen from outside the screen

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

Fladimir da Gorf
Member #1,565
October 2001
avatar

Can't you just not try to copy stuff from outside the screen?

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

FMC
Member #4,431
March 2004
avatar

How would you do it?
CopyFromScreen doesn't have width and height paramenters

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

Fladimir da Gorf
Member #1,565
October 2001
avatar

Yeah, that's right. Well, I could make it to clip to the screen automatically.

OpenLayer has reached a random SVN version number ;) | Online manual | Installation video!| MSVC projects now possible with cmake | Now alvailable as a Dev-C++ Devpack! (Thanks to Kotori)

 1   2 


Go to: