C# Class WhiteCore.Modules.WorldMap.WarpTileRenderer

Inheritance: IMapTileTerrainRenderer
Mostrar archivo Open project: WhiteCoreSim/WhiteCore-Dev Class Usage Examples

Public Methods

Method Description
CreateViewImage ( System.Vector3 camPos, System.Vector3 camDir, float fov, int width, int height, bool useTextures ) : Bitmap
GetAverageColor ( UUID textureID, byte j2kData, IScene scene ) : Color4
GetOrCreateMaterial ( Warp3Dw.Warp3D renderer, Color4 faceColor, UUID textureID ) : string
Initialise ( IScene scene, IConfigSource config ) : void
TerrainBitmap ( WhiteCore.Modules.WorldMap.Warp3DMap.Viewport viewport, bool threeD, bool useTextures ) : Bitmap
TerrainToBitmap ( Bitmap mapBmp ) : Bitmap
TerrainToBitmap ( Bitmap mapBmp, int size ) : Bitmap

Private Methods

Method Description
ConvertColor ( Color4 color ) : int
ConvertQuaternion ( Quaternion quat ) : Warp3Dw.warp_Quaternion
ConvertVector ( System.Vector3 vector ) : warp_Vector
ConvertVector ( float x, float y, float z ) : warp_Vector
CreatePrim ( Warp3Dw.Warp3D renderer, ISceneChildEntity prim, bool texturePrims ) : void
CreateTerrain ( Warp3Dw.Warp3D renderer, bool textureTerrain ) : Warp3Dw.warp_Object
CreateWater ( Warp3Dw.Warp3D renderer, bool threeD ) : void
DeserializeCache ( string file ) : bool
GetFaceColor ( Primitive textureFace ) : Color4
GetOrCreateMaterial ( Warp3Dw.Warp3D renderer, Color4 color ) : string
GetTexture ( UUID id ) : warp_Texture
ReadCacheMap ( ) : void
SaveCache ( ) : void
SerializeCache ( ) : OSDMap
SurfaceNormal ( System.Vector3 c1, System.Vector3 c2, System.Vector3 c3 ) : System.Vector3

Method Details

CreateViewImage() public method

public CreateViewImage ( System.Vector3 camPos, System.Vector3 camDir, float fov, int width, int height, bool useTextures ) : Bitmap
camPos System.Vector3
camDir System.Vector3
fov float
width int
height int
useTextures bool
return System.Drawing.Bitmap

GetAverageColor() public static method

public static GetAverageColor ( UUID textureID, byte j2kData, IScene scene ) : Color4
textureID UUID
j2kData byte
scene IScene
return Color4

GetOrCreateMaterial() public method

public GetOrCreateMaterial ( Warp3Dw.Warp3D renderer, Color4 faceColor, UUID textureID ) : string
renderer Warp3Dw.Warp3D
faceColor Color4
textureID UUID
return string

Initialise() public method

public Initialise ( IScene scene, IConfigSource config ) : void
scene IScene
config IConfigSource
return void

TerrainBitmap() public method

public TerrainBitmap ( WhiteCore.Modules.WorldMap.Warp3DMap.Viewport viewport, bool threeD, bool useTextures ) : Bitmap
viewport WhiteCore.Modules.WorldMap.Warp3DMap.Viewport
threeD bool
useTextures bool
return System.Drawing.Bitmap

TerrainToBitmap() public method

public TerrainToBitmap ( Bitmap mapBmp ) : Bitmap
mapBmp System.Drawing.Bitmap
return System.Drawing.Bitmap

TerrainToBitmap() public method

public TerrainToBitmap ( Bitmap mapBmp, int size ) : Bitmap
mapBmp System.Drawing.Bitmap
size int
return System.Drawing.Bitmap