Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted (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 by snarfblam
[sIGPIC]e[/sIGPIC]
  • *Experts*
Posted

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

"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
Posted

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

[sIGPIC]e[/sIGPIC]
  • Leaders
Posted (edited)
Does anyone know if you can clip with drawfast????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Edited by snarfblam
[sIGPIC]e[/sIGPIC]
  • Leaders
Posted

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?

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...