GetAddress
This function gets the memory address of an object.
Syntax
- string GetAddress(Object o)
Returns
Returns the memory address of the specified object as a hexidecimal string.
Example
window = Window:Create()
context = Context:Create(window)
world = World:Create()
camera = Camera:Create()
directionallight = DirectionalLight:Create()
directionallight:SetRotation(35,45,0)
--Create a model
model = Model:Box()
model:SetPosition(0,0,3)
while true do
if window:Closed() or window:KeyHit(Key.Escape) then return false end
Time:Update()
world:Update()
world:Render()
--Display the object address
context:SetBlendMode(Blend.Alpha)
context:DrawText(Object:GetAddress(model),2,2)
context:SetBlendMode(Blend.Solid)
context:Sync()
end