TOverlayRearView


Croquet-Teapot

Comment:

Main comment stating the purpose of this class and relevant relationship to other classes.

Possible useful expressions for doIt or printIt.

Structure:
 instVar1		type -- comment about the purpose of instVar1
 instVar2		type -- comment about the purpose of instVar2

Any further useful comments about the general approach of this implementation.

Hierarchy:

ProtoObject
Object
TObject
TOverlayRearView

Summary:

instance variables:

bounds camera

methods:

instance class
initialize render no messages

Detail:

instance variables:

bounds
camera

instance methods:

initialize
frustumChanged: cam


	| bnds w h tl |
	bnds _ cam bounds.
	w _ bnds width/3.0.
	h _ bnds height/6.0.
	tl _ w@(h/6.0).
	bounds _ tl corner: (tl+(w@h)).
	camera bounds: bounds.
	camera viewAngle: 45. 

initialize: vp


	camera _ TCamera new initializeWithViewPort: vp.
	camera viewAngle: 45.
	camera inPortal: true.

render
renderOverlay: ogl


	| ac trans |
	ac _ ogl camera.
	camera translation: ac globalPosition copy.
	camera rotationAroundY:ac yaw+180.
	camera initClipPlanes.
	camera currentSpace: ac root.
	trans _ camera localTransform.
	trans a11: trans a11 negated.
	trans a21: trans a21 negated.
	trans a31: trans a31 negated.
	ogl flipFace.	
	ac avatar root doRender: ogl camera: camera.
	ogl flipFace.

class methods:

^top


- made by Dandelion -