Part 3: extending not only .Net
Hi Folks,
another small progress update I would like to share with you.
While working on extending the exported functionality of the dll i have discussed with some people here in the forum and I came to the conclusion that just extending the dll and program advanced parts in .Net is not really the best for the community. While some extensions will work only for .Net at first (eg Awesomium, full XBOX360 Controller support) most extension will be programmed fully in Blitzmax and exposed through multiple include files for Blitzmax users and an extended engine.dll for all other users.
eg I will convert my Sceneloader to Blitzmax and export the functions via dll.
For those who haven't seen it yet:
Sceneloading with accurate progress support (the 102% bug is already resolved )
Also I can already show you a temporary state of the reapidly growing function list which are already added to the dll:
IntPtr CreateCubebuffer(Texture cubemap,Buffer cubemapbuffer) void ActivateCubeBufferFace(Cubebuffer cubebuffer,int face= 0) void DeactivateCubeBuffer(Cubebuffer cubebuffer) IntPtr CreateCubemap(int width,int height) int SetVegetationModel(Terrain terrain,string file,int Index= 0) int SetVegetationDensity(Terrain terrain,float density,int index= 0) float GetVegetationDensity(Terrain terrain,int index=0) int GetVegetationShadowMode(Terrain terrain,int index=0) int SetVegetationRandomTilt(Terrain terrain,float tilt,int index=0) float GetVegetationRandomTilt(Terrain terrain,int index=0) int SetVegetationRandomRotation(Terrain terrain,float rotation,int index=0) int GetVegetationRandomRotation(Terrain terrain,int index=0) int SetVegetationRandomScale(Terrain terrain,float scale,int index= 0) float GetVegetationRandomScale(Terrain terrain,int index=0) int SetVegetationLODDistance(Terrain terrain,float dist,int index=0) float GetVegetationLODDistance(Terrain terrain,int index=0) int SetVegetationViewRange(Terrain terrain,float Range,int index=0) float GetVegetationViewRange(Terrain terrain,int index=0) int SetVegetationAlignment(Terrain terrain,int Mode,int index=0) int GetVegetationAlignment(Terrain terrain,int index=0) int DistributeVegetation(Terrain terrain,int index=0,int aligntoslope=0) void DeleteVegetation(Terrain terrain,int index=0) void GenerateColorMap(Terrain terrain,int resolution) void SetLayerCollisionType(Terrain terrain,int layer,int _type) void SaveVegetation(Terrain terrain,string file,int Index) void LoadVegetation(Terrain terrain,string file,int Index) void AddVegetationInstance(Terrain terrain,float x,float z,int layer,float density,int randrotation,float randscale,int aligntonormal,float tilt) void SetTerrainBaseMap(Terrain terrain,Texture texture) int SetMaterialBlendMode(Material material,int mode) int GetMaterialBlendMode(Material material) int SetMaterialBumpScale(Material material,float Scale) float GetMaterialBumpScale(Material material) int SetMaterialCastShadows(Material material,int enabled) int GetMaterialCastShadows(Material material) int SetMaterialColorMask(Material material,int enabled) int GetMaterialColorMask(Material material) int SetMaterialCullFace(Material material,int enabled) int GetMaterialCullFace(Material material) int SetMaterialDepthMask(Material material,int enabled) int GetMaterialDepthMask(Material material) int SetMaterialDepthTest(Material material,int enabled) int GetMaterialDepthTest(Material material) int SetMaterialGloss(Material material,float gloss) float GetMaterialGloss(Material material) int SetMaterialInvisible(Material material,int enabled) int GetMaterialInvisible(Material material) int SetMaterialOverlay(Material material,int enabled) int GetMaterialOverlay(Material material) int SetMaterialSpecular(Material material,float specular) float GetMaterialSpecular(Material material) int SetMaterialStipple(Material material,int enabled) int GetMaterialStipple(Material material) int SetMaterialZsort(Material material,int enabled) int GetMaterialZsort(Material material)
Total extensions: 54
A lot of functions will be added in the next days and i have a lot of ideas about additional helper functions and additions all Leadwerks user should benefit from.
thx for reading
klepto2
11 Comments
Recommended Comments