home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "07_01 Basic Texture"
- ClientHeight = 5655
- ClientLeft = 915
- ClientTop = 1230
- ClientWidth = 6360
- Height = 6030
- Left = 855
- LinkTopic = "Form1"
- ScaleHeight = 5655
- ScaleWidth = 6360
- Top = 915
- Width = 6480
- Begin TgsVisual3SpaceLibCtl.V3Space V3Space1
- Height = 5532
- Left = 0
- TabIndex = 0
- Top = 120
- Width = 6372
- _Version = 131072
- _ExtentX = 11240
- _ExtentY = 9758
- _StockProps = 0
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Form_Initialize()
- Dim root As SoSeparator
- Set root = New SoSeparator
- 'Choose a texture
- Dim rock As SoTexture2
- Set rock = New SoTexture2
- Call root.addChild(rock)
- Call rock.fname.setValue(V3Space1.getRegistryDataPath() + "/examples/data/brick_1.rgb")
- 'Make a cube
- Dim myCube As SoCube
- Set myCube = New SoCube
- Call root.addChild(myCube)
- Call V3Space1.setSceneRoot(root)
- Call V3Space1.viewAll
- 'clean up
- Set root = Nothing
- Set rock = Nothing
- Set myCube = Nothing
- Set sceneRoot = Nothing
- End Sub
-