C# Класс Radegast.Rendering.SceneWindow

Наследование: RadegastTabControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CacheDecodedTextures bool
RenderingEnabled bool
UseMultiSampling bool
Viewport int[]
Wireframe bool
glControl OpenTK.GLControl
invisi1 UUID
invisi2 UUID

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
KillObjectHandler ( object sender, PacketReceivedEventArgs e ) : void

Приватные методы

Метод Описание
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

Описание методов

CreateReflectionTexture() публичный Метод

public CreateReflectionTexture ( float waterHeight, int textureSize ) : void
waterHeight float
textureSize int
Результат void

CreateRefractionDepthTexture() публичный Метод

public CreateRefractionDepthTexture ( float waterHeight, int textureSize ) : void
waterHeight float
textureSize int
Результат void

DownloadTexture() публичный Метод

public DownloadTexture ( TextureLoadItem item, bool force ) : void
item TextureLoadItem
force bool
Результат void

GLHUDBegin() публичный Метод

public GLHUDBegin ( ) : void
Результат void

GLHUDEnd() публичный Метод

public GLHUDEnd ( ) : void
Результат void

KillObjectHandler() защищенный Метод

protected KillObjectHandler ( object sender, PacketReceivedEventArgs e ) : void
sender object
e PacketReceivedEventArgs
Результат void

RegisterTabEvents() публичный Метод

public RegisterTabEvents ( ) : void
Результат void

RenderWater() публичный Метод

public RenderWater ( ) : void
Результат void

SceneWindow() публичный Метод

public SceneWindow ( RadegastInstance instance ) : ThreadPoolUtil
instance RadegastInstance
Результат ThreadPoolUtil

SetupGLControl() публичный Метод

public SetupGLControl ( ) : void
Результат void

StartShiny() публичный Метод

Select shiny shader as the current shader
public StartShiny ( ) : void
Результат void

TryGetTextureInfo() публичный Метод

public TryGetTextureInfo ( UUID textureID, TextureInfo &info ) : bool
textureID UUID
info TextureInfo
Результат bool

TryPick() публичный Метод

public TryPick ( int x, int y, object &picked, int &faceID ) : bool
x int
y int
picked object
faceID int
Результат bool

TryPick() публичный Метод

public TryPick ( int x, int y, object &picked, int &faceID, Vector3 &worldPos ) : bool
x int
y int
picked object
faceID int
worldPos Vector3
Результат bool

UnregisterTabEvents() публичный Метод

public UnregisterTabEvents ( ) : void
Результат void

UpdateCamera() публичный Метод

public UpdateCamera ( ) : void
Результат void

Описание свойств

CacheDecodedTextures публичное свойство

Cache images after jpeg2000 decode. Uses a lot of disk space and can cause disk trashing
public bool CacheDecodedTextures
Результат bool

RenderingEnabled публичное свойство

Is rendering engine ready and enabled
public bool RenderingEnabled
Результат bool

UseMultiSampling публичное свойство

Use multi sampling (anti aliasing)
public bool UseMultiSampling
Результат bool

Viewport публичное свойство

Size of OpenGL window we're drawing on
public int[] Viewport
Результат int[]

Wireframe публичное свойство

Rednder in wireframe mode
public bool Wireframe
Результат bool

glControl публичное свойство

The OpenGL surface
public OpenTK.GLControl glControl
Результат OpenTK.GLControl

invisi1 публичное статическое свойство

public static UUID invisi1
Результат UUID

invisi2 публичное статическое свойство

public static UUID invisi2
Результат UUID