|
From: Daniele C. <dca...@in...> - 2007-09-13 10:42:02
|
I try so:
drawContextDisplay is a TQ3DrawContextObject global variable
TQ3AcceleratedOffscreenPropertyData propData;
myStatus = Q3View_GetDrawContext
(gDocumento3D.fView,&drawContextDisplay); // I get the drawcontext display
myDrawContext = MyNewDrawContext(lar,alt);// I create the Pixmap
drawcontext (TQ3PixmapDrawContextData)
propData.masterDrawContext=drawContextDisplay;
propData.copyFromPixmapAtFrameStart=kQ3False;
propData.copyToPixmapAtFrameEnd=kQ3False;
myStatus = Q3Object_SetProperty(myDrawContext,
kQ3DrawContextPropertyAcceleratedOffscreen,sizeof(propData), &propData );
myStatus=Q3View_SetDrawContext(gDocumento3D.fView,myDrawContext);
Do you think it is a correct operation?
The variable myStatus is always True but when I call
Q3View_StartRendering program crash.
James W. Walker ha scritto:
> On Sep 11, 2007, at 2:35 AM, Daniele Cavallini wrote:
>
>
>> You are right in Mac there is not problem.
>> I work with a imac intel core due with video card ATI Radeon x1600
>> I can well compare mac os x and windows xp.
>>
>> I tried to use kQ3DrawContextPropertyAcceleratedOffscreen:
>>
>> TQ3Boolean theFlag = kQ3True;
>> Q3Object_SetProperty( fRenderer, kQ3RendererPropertyShadows,sizeof
>> (theFlag), &theFlag );
>> Q3Object_SetProperty( fRenderer,
>> kQ3DrawContextPropertyAcceleratedOffscreen,sizeof(theFlag),
>> &theFlag );
>>
>>
>> but without success.
>>
>
> kQ3DrawContextPropertyAcceleratedOffscreen is a property that must be
> set on the draw context, not the renderer. That's why it's called a
> draw context property. Also, the value is not a TQ3Boolean. See the
> documentation in QuesaDrawContext.h.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Quesa-develop mailing list
> Que...@li...
> https://lists.sourceforge.net/lists/listinfo/quesa-develop
>
>
|