C# Class Radegast.Rendering.SceneWindow

Inheritance: RadegastTabControl
显示文件 Open project: radegastdev/radegast Class Usage Examples

Public Properties

Property Type Description
CacheDecodedTextures bool
RenderingEnabled bool
UseMultiSampling bool
Viewport int[]
Wireframe bool
glControl OpenTK.GLControl
invisi1 UUID
invisi2 UUID

Public Methods

Method Description
CreateReflectionTexture ( float waterHeight, int textureSize ) : void
CreateRefractionDepthTexture ( float waterHeight, int textureSize ) : void
DownloadTexture ( TextureLoadItem item, bool force ) : void
GLHUDBegin ( ) : void
GLHUDEnd ( ) : void
RegisterTabEvents ( ) : void
RenderWater ( ) : void
SceneWindow ( RadegastInstance instance ) : ThreadPoolUtil
SetupGLControl ( ) : void
StartShiny ( ) : void

Select shiny shader as the current shader

TryGetTextureInfo ( UUID textureID, TextureInfo &info ) : bool
TryPick ( int x, int y, object &picked, int &faceID ) : bool
TryPick ( int x, int y, object &picked, int &faceID, Vector3 &worldPos ) : bool
UnregisterTabEvents ( ) : void
UpdateCamera ( ) : void

Protected Methods

Method Description
KillObjectHandler ( object sender, PacketReceivedEventArgs e ) : void

Private Methods

Method Description
Abs ( float p ) : float
AddAvatarToScene ( Avatar av ) : void
Appearance_AppearanceSet ( object sender, AppearanceSetEventArgs e ) : void
Application_Idle ( object sender, EventArgs e ) : void
AvatarAnimationChanged ( object sender, OpenMetaverse.AvatarAnimationEventArgs e ) : void
AvatarDataInitialzied ( ) : void
Avatars_AvatarAppearance ( object sender, OpenMetaverse.AvatarAppearanceEventArgs e ) : void
CalculateBoundingBox ( RenderPrimitive rprim ) : void
CheckKeyboard ( float time ) : void
ControlLoaded ( object sender, EventArgs e ) : void
DisposeInternal ( ) : void
DrawWaterQuad ( float x, float y, float z ) : void
FindClosestDistanceSquared ( Vector3 calcPos, SceneObject p ) : float

Finds the closest distance between the given pos and an object (Assumes that the object is a box slightly)

GenerateSculptOrMeshPrim ( RenderPrimitive rprim, Primitive prim ) : GenericTask
GenericTaskRunner ( ) : void
GetSceneObject ( uint localID ) : SceneObject
GluPerspective ( float fovy, float aspect, float zNear, float zFar ) : void
InitAvatarData ( ) : void
InitCamera ( ) : void
InitShaders ( ) : void
InitWater ( ) : void
IsAttached ( uint parentLocalID ) : bool

Gets attachment state of a prim

LODFactor ( float distance, float radius ) : float
LoadCurrentPrims ( ) : void
LoadTexture ( UUID textureID, Image &texture, bool removeAlpha ) : bool
MainRenderLoop ( ) : void
MeshPrim ( RenderPrimitive rprim ) : void
Netcom_ClientDisconnected ( object sender, DisconnectedEventArgs e ) : void
Network_SimChanged ( object sender, SimChangedEventArgs e ) : void
Objects_AvatarUpdate ( object sender, AvatarUpdateEventArgs e ) : void
Objects_ObjectUpdate ( object sender, PrimEventArgs e ) : void
Objects_TerseObjectUpdate ( object sender, TerseObjectUpdateEventArgs e ) : void
PrimPos ( Primitive prim ) : Vector3
PrimPosAndRot ( SceneObject obj, Vector3 &pos, Quaternion &rot ) : void

Calculates finar rendering position for objects on the scene

RadegastTab_TabAttached ( object sender, EventArgs e ) : void
RadegastTab_TabClosed ( object sender, EventArgs e ) : void
RadegastTab_TabDetached ( object sender, EventArgs e ) : void
Render ( bool picking ) : void
RenderAvatars ( RenderPass pass ) : void
RenderAvatarsSkeleton ( RenderPass pass ) : void
RenderBoundingBox ( SceneObject prim ) : void
RenderObjects ( RenderPass pass ) : void
RenderOccludedObjects ( ) : void
RenderSphere ( float cx, float cy, float cz, float r, int p ) : void
RenderStats ( ) : void
RenderText ( RenderPass pass ) : void
SetPerspective ( ) : void
SetSun ( ) : void
SetWaterPlanes ( ) : void
SortCullInterpolate ( ) : void
Terrain_LandPatchReceived ( object sender, LandPatchReceivedEventArgs e ) : void
TextureThread ( ) : void
TryEndTouchObject ( ) : void
TryTouchObject ( RenderPrimitive LeftclickedObject ) : void
UpdateAvatarAnimations ( RenderAvatar av ) : void
UpdatePrimBlocking ( Primitive prim ) : void
animRecievedCallback ( AssetDownload transfer, Asset asset ) : void
btnReset_Click ( object sender, EventArgs e ) : void
btnSay_Click ( object sender, EventArgs e ) : void
button1_Click ( object sender, EventArgs e ) : void
button_driver_Click ( object sender, EventArgs e ) : void
button_vparam_Click ( object sender, EventArgs e ) : void
cbMisc_CheckedChanged ( object sender, EventArgs e ) : void
comboBox1_SelectedIndexChanged ( object sender, EventArgs e ) : void
comboBox_morph_SelectedIndexChanged ( object sender, EventArgs e ) : void
ctxObjects_Opening ( object csender, System ce ) : void

Dynamically construct the context menu when we right click on the screen

gbZoom_Enter ( object sender, EventArgs e ) : void
glControl_Disposed ( object sender, EventArgs e ) : void
glControl_Load ( object sender, EventArgs e ) : void
glControl_MouseDown ( object sender, MouseEventArgs e ) : void
glControl_MouseMove ( object sender, MouseEventArgs e ) : void
glControl_MouseUp ( object sender, MouseEventArgs e ) : void
glControl_MouseWheel ( object sender, MouseEventArgs e ) : void
glControl_Paint ( object sender, EventArgs e ) : void
glControl_Resize ( object sender, EventArgs e ) : void
glControl_UnhookEvents ( ) : void
hsAmbient_Scroll ( object sender, ScrollEventArgs e ) : void
hsDiffuse_Scroll ( object sender, ScrollEventArgs e ) : void
hsLOD_Scroll ( object sender, ScrollEventArgs e ) : void
hsSpecular_Scroll ( object sender, ScrollEventArgs e ) : void
textBox_vparamid_TextChanged ( object sender, EventArgs e ) : void
textBox_y_TextChanged ( object sender, EventArgs e ) : void
textBox_z_TextChanged ( object sender, EventArgs e ) : void
txtChat_KeyDown ( object sender, KeyEventArgs e ) : void
txtChat_TextChanged ( object sender, EventArgs e ) : void
updateAVtes ( RenderAvatar ra ) : void

Method Details

CreateReflectionTexture() public method

public CreateReflectionTexture ( float waterHeight, int textureSize ) : void
waterHeight float
textureSize int
return void

CreateRefractionDepthTexture() public method

public CreateRefractionDepthTexture ( float waterHeight, int textureSize ) : void
waterHeight float
textureSize int
return void

DownloadTexture() public method

public DownloadTexture ( TextureLoadItem item, bool force ) : void
item TextureLoadItem
force bool
return void

GLHUDBegin() public method

public GLHUDBegin ( ) : void
return void

GLHUDEnd() public method

public GLHUDEnd ( ) : void
return void

KillObjectHandler() protected method

protected KillObjectHandler ( object sender, PacketReceivedEventArgs e ) : void
sender object
e PacketReceivedEventArgs
return void

RegisterTabEvents() public method

public RegisterTabEvents ( ) : void
return void

RenderWater() public method

public RenderWater ( ) : void
return void

SceneWindow() public method

public SceneWindow ( RadegastInstance instance ) : ThreadPoolUtil
instance RadegastInstance
return ThreadPoolUtil

SetupGLControl() public method

public SetupGLControl ( ) : void
return void

StartShiny() public method

Select shiny shader as the current shader
public StartShiny ( ) : void
return void

TryGetTextureInfo() public method

public TryGetTextureInfo ( UUID textureID, TextureInfo &info ) : bool
textureID UUID
info TextureInfo
return bool

TryPick() public method

public TryPick ( int x, int y, object &picked, int &faceID ) : bool
x int
y int
picked object
faceID int
return bool

TryPick() public method

public TryPick ( int x, int y, object &picked, int &faceID, Vector3 &worldPos ) : bool
x int
y int
picked object
faceID int
worldPos Vector3
return bool

UnregisterTabEvents() public method

public UnregisterTabEvents ( ) : void
return void

UpdateCamera() public method

public UpdateCamera ( ) : void
return void

Property Details

CacheDecodedTextures public_oe property

Cache images after jpeg2000 decode. Uses a lot of disk space and can cause disk trashing
public bool CacheDecodedTextures
return bool

RenderingEnabled public_oe property

Is rendering engine ready and enabled
public bool RenderingEnabled
return bool

UseMultiSampling public_oe property

Use multi sampling (anti aliasing)
public bool UseMultiSampling
return bool

Viewport public_oe property

Size of OpenGL window we're drawing on
public int[] Viewport
return int[]

Wireframe public_oe property

Rednder in wireframe mode
public bool Wireframe
return bool

glControl public_oe property

The OpenGL surface
public OpenTK.GLControl glControl
return OpenTK.GLControl

invisi1 public_oe static_oe property

public static UUID invisi1
return UUID

invisi2 public_oe static_oe property

public static UUID invisi2
return UUID