realbasic-games
[Top] [All Lists]

Re: Quesa 1.8 released

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Quesa 1.8 released
From: Lo Saeteurn <realbasic at miensoftware dot com>
Date: Wed, 17 May 2006 13:29:56 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <33cbfa100605161020s6a3cb349u1f6ddfc98bb6e6b at mail dot gmail dot com> <446A0E1C dot 70409 at optonline dot net> <FAFEAE67-2B17-41E0-9D89-0771E887F3BC at chaoticbox dot com>
Now how do I go about setting it back to normal?

On May 16, 2006, at 12:14 PM, Frank Condello wrote:

On 16-May-06, at 1:38 PM, Daniel Lurie wrote:

Lars Jensen wrote:
cartoon-style renderer

Cool! Anybody know how to invoke this via RB?

lj
I don't, but I'm sure Joe and Frank do. (waits for answer) (suspects something declare-y)

Keep in mind you can't declare to Quesa in Mach-O or Linux builds but this'll do it:

  Dim cartoonType As Integer
Declare Sub Q3ObjectHierarchy_GetTypeFromString Lib "Quesa" (objectClassString As CString, ByRef objectClassType As Integer) Declare Sub Q3View_SetRendererByType Lib "Quesa" (view As Integer, theType As Integer)
  Q3ObjectHierarchy_GetTypeFromString("Quesa Cartoon", cartoonType)
  Q3View_SetRendererByType(space.ViewHandle, cartoonType)

Where "space" is your Rb3DSpace. Note that you can't do this in the Rb3DSpace's open event, use a short timer and run that from the open event instead (that's the safest way to change *any* Rb3DSpace parameters - even built-in stuff). Also note that those declares are technically functions that return error codes so you might want to check the return values in a real app.

HTH!
Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>