This is about Entities in general because I intend to do something
I don't know if I already asked: Is there a way to create an Entity from something that I create with TBGL_GBufferDefineFromArray? So the entity-camera-view even in other FOV-settings is correct?
Another thing:
Is it possible to receive the number of Texture-Slot which was assigned to myEntity by TBGL_EntitySetTexture? Or do I need append this to Entity-Userdata-Slot - I would like to avoid useless variables since all Entities have those lovely Get+Set-methods and that additional variable would apply to each and every entity... That would be a great help if I want to manage a textures-pool, so I know which textures are still needed when unloading something or if space is needed.
Did I understand correct: TBGL_Entity_etName()-methods allow to append/re-read ANY string as a name or identifier?
But I miss a function for fast-retrieve EntityID = TBGL_EntityIDFromName(scene, "the desired identity") which would upvalue the Name-Property - but still great to use in combination with CallIfExists "Update_" + TBGL_EntityGetName(...)
To the help: TBGL_EntitySetUserData + TBGL_EntityGetUserDataPointer,
in the example
dim temporary as tUserBox at TBGL_EntityGetUserDataPointer(%SCENE1, %eBox1)
msgbox hWnd, "Box1 weights"+STR$(tempvar.weight)+" kilograms and is made of "+tempvar.materialName
' -- Move memory overlay to retrieve data for box2
SetAt(tempvar, TBGL_EntityGetUserDataPointer(%SCENE1, %eBox2))
msgbox hWnd, "Box2 weights"+STR$(tempvar.weight)+" kilograms and is made of "+tempvar.materialName
Dim temporary is confusing me in both examples...
Bookmarks