Leaders snarfblam Posted July 7, 2003 Leaders Posted July 7, 2003 (edited) In my program I am drawing to the backbuffer, which has a clipper tied to the form being drawn on. When I try to blit over the edge of the form, however, the program raises an exception: Error 5: Error in the application. Am I confused or should the clipping rectangle (set to contain the form by clipper.window = targetform) prevent errors caused by blitting outside the edges of the surface? I'm wondering if this would work on the .draw method and not the .drawfast method Edited July 8, 2003 by snarfblam Quote [sIGPIC]e[/sIGPIC]
*Experts* Nerseus Posted July 8, 2003 *Experts* Posted July 8, 2003 What does the dbmon application report? dbmon.exe is located at: C:\DXSDK\Bin\DXUtils If you run it, then run your application in Debug mode, the dbmon window will show some diagnostics, including more descriptive errors than what you get inside Visual Studio. -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Leaders snarfblam Posted July 9, 2003 Author Leaders Posted July 9, 2003 Does clipping work for .drawfast()? 2096: Direct3D9: (ERROR) :Invalid BltFast destination dimensions I don't think thats the problem because the i got an error with .draw() too. 3176: Direct3D9: (ERROR) :width/height = 640 x 480, dest rect = (504, 466)-(520, 482) I also set the clipping rectangle to a smaller region and it still did not clip it Quote [sIGPIC]e[/sIGPIC]
Leaders snarfblam Posted July 14, 2003 Author Leaders Posted July 14, 2003 (edited) Does anyone know if you can clip with drawfast????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Edited July 15, 2003 by snarfblam Quote [sIGPIC]e[/sIGPIC]
Leaders snarfblam Posted July 15, 2003 Author Leaders Posted July 15, 2003 Is there anything wrong with this? Dim clip2 As New Clipper Dim ClipRect() As Rectangle = {New Rectangle(0, 0, 640, 480)} clip2.ClipList = ClipRect ssurface.Clipper = clip2 [/Code] Does anyone know? Does anyone care? Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.