Drawing with carbon (agl) to NSWindow

I need to update a legacy library so that it can draw to an NSWindow with agl and Carbon. I actually have no problem drawing, the problem is that I am drawing over the window decorations and don't know how not to. Has anyone run into this problem?
Thanks

I don't know about AGLCLIPREGION, but I can suggest an alternate approach that I think will achieve the effect you want. First, use AGLSURFACEORDER to put the OpenGL drawing surface behind the window. Second, install a handler for the kEventClassWindow / kEventWindowGetRegion Carbon Event to make the window's opaque region empty. You may need to call ReshapeCustomWindow after installing the event handler to put the region change into effect. And use CGContextClearRect to cut a rectangular hole in the window so that your drawing surface can be seen.
By the way, the OpenGL mailing list at lists.apple.com might be a place where your question will be seen by more experts.

Similar Messages

  • Drawing with a pencil = circles and rectangles

    When I am drawing with a pencil, the line looks like the shape I want to draw, but when I stop drawing, the shape reshapes to another shape whick looks like circles and rectangles = it does not look like the shape I wanted to draw. What is the problem?

    at the bottom of the tools panel click the pencil mode icon and choose ink or, use the brush tool if you want no adjustment to your drawing.

  • Drawing with the Pen tools

    This question was posted in response to the following article: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-73a0a.h tml

    Correction: same issue -- pen tool drawing shows up only on the digital image on the screen. Not when printed. Well sounded like a good theory.
    Problem remains: how to get pen tool drawing, made on photographs, to print.
    From: [email protected]
    To: [email protected]
    Subject: Drawing with the Pen tools o photographi
    Date: Sat, 5 May 2012 20:08:05 +0000
    Curt, believe I found the answer:
    Create a new blank page, the size of the photograph to be worked on. The blank page is what the pen tool responds to only.
    Add the photographic image to the new blank page (same size).
    Now you can use the pen tool over the photographic image. When finished drawing, flatten the image with drawing, and print. 
    Date: Fri, 4 May 2012 21:00:54 -0600
    From: [email protected]
    To: [email protected]
    Subject: Drawing with the Pen tools
        Re:  Drawing with the Pen tools
        created by Curt Y in Photoshop General Discussion - View the full discussion
    Perhaps you are talking about stroking the line? 
    Set the color and size with brush, then in Path window click on Stroke Path with Brush.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4380667#4380667
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4380667#4380667. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop General Discussion by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Drawing with Asterisk

    does anyone know how to draw with asterisk on an applet? i am writing a program that asks a user for a size of a square and then draws the square on an applet using asterisk.

    TextArea.Insert("******",10);

  • Drawing with mouse

    Hi everybody,
    I'm making a drawing application, everythings looks and works ok, except for one thing...
    My mouse cursor is hidden and a paintbrush like cursor follows it. This cursor is a movieclip, because the user chooses a color, and the tip of this paintbrush changes to the selected color.
    So far so good. But there's one problem... when I draw to the left the line is drawed with no problem, but when I draw to the right, the line is interrupted, and I don't understand why.
    I made one experiment, and with no movieclip "attached" to the mouse cursor, the line is drawed with no problem, both to the right and left.
    I'll give you the code that manages this feature, in hope that someone can help me on this.
    Thanks for your time...

    You're wright... it is here. The boardOut function is called too soon, but funny thing is that, if I don't have a movie clip following the mouse, it works OK. If there's a MC the mouse calls boardOut early, when the drawing movement is to the right.
    To the left the movement has no problem

  • Drawing with a custom profile stroke is not working for me. Does it work for you?

    Drawing with a custom profile stroke is not working for me. Does it work for you?
    I can only apply it on an existing stroke but can't draw a new one with the selected profile. In fact if I change the profile to other than the default Uniform I also can't draw a new stroke with any other width than the default 1 point. This doesn't seem normal.
    Using SC5 on a PC.

    Another question on the same topic.
    Once I add a new profile to the list is it possible to put it on top of the list. I need this because the Adobe people decided to put the list in a tiny scrollable window with only a few of the first profiles showing. If there is noting in the interface may be I have to modify some program files settings?

  • Delayed live screen drawing with tools in Photoshop. Video driver update?

    Delayed live screen drawing with tools in Photoshop CS5 on my iMac running system 10.6.7.
    Hi there. Recently, I've been having issues with the tools. There's a distinct DELAY in the live drawing. For example, if I open a random image, take the pencil, paintbrush, or even eraser tool, and I draw a large line across the image, I don't see anything. If I zoom in or out 1 click, I see the line. If I draw ANOTHER line, same thing - I need to zoom in or out to see it. With all of the tools. I've never had this issue before and it's incredibly frustrating (that might be an understatement as you can imagine - I use PS daily as I am a full-time designer.) Any ideas or solutions? I've already TRASHED my preferences and reset the tool. If it IS a driver issue (which is weird, because this issue just recently started happening) I contacted the driver manufacturer (AMD) and was told:
    "Unfortunately, Apple does not authorize us to release drivers for their products.
    All drivers are provided to Apple who then customize and release them to their customers.
    You will need to contact Apple to obtain the most current drivers for your product."

    You are correct - only Apple can deliver display drivers to you.  That's what you get with a Mac as Apple wants to be your "one stop shop" for support..
    Just curious:  Are you painting with large brushes and very small Spacing values?  That can cause some delay, though it normally catches up on its own - you don't have to do anything to make it happen.
    Have you tried disabling OpenGL Drawing in your Photoshop Edit - Preferences - Performance menu.  Restart Photoshop after making that change and before testing.
    -Noel

  • Using a keyListener to draw with arrow keys

    Hi!
    I am trying to create an interactive game where the user can
    draw a line using the arrow keys (similar to an etch-a-sketch). I
    have a start point acting on keyListeners that will move around the
    screen using the arrow keys, but I can't seem to figure out how to
    get the listeners to draw a line. Here is the correct code that
    moves the start point:
    information_txt.text = "USE YOUR ARROW KEYS TO DRAW";
    var speed:Number = 4;
    start_mc.onEnterFrame = function() {
    if (Key.isDown(Key.RIGHT)) {
    this._x = this._x+speed;
    } else if (Key.isDown(Key.LEFT)) {
    this._x = this._x-speed;
    if (Key.isDown(Key.UP)) {
    this._y = this._y-speed;
    } else if (Key.isDown(Key.DOWN)) {
    this._y = this._y+speed;
    How can I modify Action Script to get the keyListeners to
    draw on the arrow keys?
    Any help would be MUCH appreciated!!!
    Thanks!

    Thanks for your reply! That's awesome. you were right, my
    script is in AS 2.0... I guess I posted to the wrong section. But I
    could easily switch to AS 3.0. I am really just interested in
    drawing with the arrow keys and using that action script to draw
    onto my own stage/ image. I have tried messing with the script, but
    can't seem to get the "drawing" portions of the script to work.
    Any suggestions??
    Thanks again for the help!!!

  • My mac mini does not boot, after backing the enire system onto an external drive with Carbon Copy Clone

    My Mac Mini does not boot, after backing the enire system onto an external drive with Carbon Copy Clone. I had switched the start-up disk back to the original of course. Now all I see is the Apple logo. What should I do? Thanks in advance.

    Try disconnecting any external devices, especially hard drives
    and try rebooting.
    If that doesn't help, then :
    If you are running Lion, boot to the Recovery HD and run a
    Repair Disk on the OSX partition.
    If Snow Leopard, boot to the installl DVD and run Repair Disk.
    Also, you may want to bookmark this:
    http://reviews.cnet.com/8301-13727_7-57345273-263/troubleshooting-the-boot-proce ss-for-intel-macs/?tag=txt;title
    for future reference.  It is a pretty good explanation of the
    Mac boot process and how to identify where problems may be.

  • Jittery lines when drawing with pencil tool in Flash

    When drawing with the pencil tool using an Intuos Wacom tablet, the lines are jagged and create several points along the jagged line, making the pencil tool unusable. Does not occur with any other program. Using Flash CC Pro 2014.

    Hi Jessy,
    Can you please provide the following details to understand the issue .
    What is mode of pencil you have set to draw like straihgten ,Smooth or Ink ,and if it smooth mode what is the smothing value you have set .
    Wacom driver version.
    do you see this problem in any previous version of Flash.
    Thanks!
    Latha

  • Drawing with a graphics tablet in Flash

    Hey community!
    I recently got the newest version of Flash and wanted to do some drawing with my graphics tablet, but whenever i try to draw a freehand line, using the pencil or paintbrush tool, then for some reason, it draws a straight line leading to the bottom left side of the screen, and i have no idea why it is doing this.
    When i use the tablet to draw in Photoshop, then it works absolutely fine, but not in Flash
    Any help will be lovely!!
    Thank you

    Hi,
    The issue is resolved in the latest update of Flash Pro.Please update Flash professional to 14.1.0.96 .Follow the instruction below for the same :
    Installation instructions
    Log out and log in to the CC desktop application. Update the application when prompted.
    You should see the list of new updates as soon as the new CC desktop application is launched.
    Install Flash Professional CC and Mobile Device Packaging app. On a high speed connection, it took me around 8 minutes.
    After the application is installed, you can launch the application directly from the desktop app by clicking on it.
    Thanks & Regards,
    Sangeeta

  • When I try to copy a drawing with text, it only pastes the text,  can anyone help me?

    When I try to copy a drawing with text, it only pastes the text,  can anyone help me?
    adobe illustrator cs5

    Are your drawing layers locked and the text layers unlocked?  So far it sounds as if the "Copy" command isn't grabbing anything but the text.  I've had a similar problem with text not coming across when I saved my vector art as a raster image: for that I had to remove a compound path or something from the text before it would come over.
    Make sure your layers (and sublayers) aren't locked, and check your compound paths and clipping masks to see if there's something funny going on.

  • How to draw with mouse on Html 5 canvas inside browser (using createJs).

    Hi Everyone,
    In Flash AS2/3 we can draw with mouse in browser (of course inside Flash Player). How can we do that in Flash CC Canvas using CreateJs (result must be in canvas not in flash player). Something like this http://www.codicode.com/art/how_to_draw_on_a_html5_canvas_with_a_mouse.aspx
    Thanks in Advance

    This is a bit more of a JavaScript / Canvas question than a Flash question. I realize you're using the Flash product but Flash CC is just giving you an IDE with limited JavaScript automation.
    In this mode you're expected to be familiar with JavaScript and CreateJS. Are you?
    If not, what you might want to do is look at a sister product for HTML5 Canvas automation called EaselJS. It's a JavaScript library that makes using the Canvas very easy. Have a look at the commands here:
    http://www.createjs.com/Docs/EaselJS/modules/EaselJS.html
    You might find you don't need Flash CC to perform what you want. Otherwise this conversation may tip so deeply into JavaScript and CreateJS that it might be more prudent to use the Dreamweaver forum.

  • Sparse disk, with elastic dinamic capacity, works only if made with carbon copy

    I  am trying to create a sparse image disk to put unlimitlessly all projects from final cut pro, when i create it with carbon copy cloner I achieve my goal but i cant obtain same result with utility disk, why, it seems I use same setting

    Without details, it's anyone's guess what your problem might be. Post the Disk Utility steps or the diskutil commands and maybe someone can help.

  • Using Open GL/ Advanced Drawing with HDR

    Hey all -
    I've just switched to using Vista and now have a new vid card (GTX285) so I'm using the OpenGL stuff for the first time. I can't get my head around how to use the Debugging section to get accurate results with linear data images.
    I'm looking at 32bit .exr renders and normally they have a gamma of 1 and I make adjustments in Pshop before going to 8bit, but how what setting in the Advanced Drawing settings can I trust?  Depending on what I have set there the image looks very different, but also converts to 8 bit looking very different.
    What is the default workfflow setup that best matches what CS4 does *without* the OpenGL stuff active - but still makes use of the acceleration? The documentation on that stuff is pretty thin.
    Thanks
    b

    Truly appreciate your input.  Thanks.  I will try instalation of Catalyst 11.7 after removal of 11.11 and return to you soon of results.  Thanks, again.
    From: Noel Carboni <[email protected]>
    To: aldpal <[email protected]>
    Sent: Wednesday, November 30, 2011 8:09 AM
    Subject: Open GL Advanced Mode?
    Re: Open GL Advanced Mode? created by Noel Carboni in Photoshop Windows - View the full discussion
    I do not know why the Radeon HD 4600 should not provide Photoshop with the features it expects to see to be able to enable OpenGL.  The crop tool behaving badly could be another indication of a display driver problem.
    It's possible the 11.11 driver for that particular card has a bug, or that something else installed on your system is interfering with OpenGL operation.  You're using an older (but not ancient) card on an outdated operating system, so it's possible the driver developers could have concentrated more on other things (e.g., Windows 7 operation) during their development.
    Some things you could try:
    Check for any other software, such as a remote accesss package (e.g., where you or someone could log in to your system from the network) that could interfere with OpenGL operation.
    Remove the Catalyst 11.11 driver, reboot, and install an older version (I suggest trying 11.7, which seemed very stable).
    -Noel
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4054788#4054788
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4054788#4054788. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Windows by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for