Uses of Class
com.raylib.Material
Packages that use Material
-
Uses of Material in com.raylib
Methods in com.raylib that return MaterialModifier and TypeMethodDescriptionstatic Material
Material.allocateArray
(long elementCount) Allocate an array of Materialstatic Material
Material.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of MaterialMaterial.getArrayElement
(int index) Model.getMaterials()
Materials arraystatic Material
Raylib.loadMaterialDefault()
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)static Material
Raylib.loadMaterialDefault
(Arena arena) Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)static Material
Raylib.loadMaterials
(String fileName, IntBuffer materialCount) Load materials from model fileMaterial.setMaps
(MaterialMap value) Material maps array (MAX_MATERIAL_MAPS)Material.setParams
(MemorySegment value) Material generic parameters (if required)Material shaderMethods in com.raylib with parameters of type MaterialModifier and TypeMethodDescriptionstatic void
Draw a 3d mesh with material and transformstatic void
Raylib.drawMeshInstanced
(Mesh mesh, Material material, MemorySegment transforms, int instances) Draw multiple mesh instances with material and different transformsstatic boolean
Raylib.isMaterialReady
(Material material) Check if a material is readyModel.setMaterials
(Material value) Materials arraystatic void
Raylib.setMaterialTexture
(Material material, int mapType, Texture texture) Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)static void
Raylib.unloadMaterial
(Material material) Unload material from GPU memory (VRAM)Constructors in com.raylib with parameters of type MaterialModifierConstructorDescriptionModel
(Matrix transform, int meshCount, int materialCount, Mesh meshes, Material materials, IntBuffer meshMaterial, int boneCount, BoneInfo bones, Transform bindPose) Construct with auto memory allocator and fields initialized as specifiedModel
(SegmentAllocator arena, Matrix transform, int meshCount, int materialCount, Mesh meshes, Material materials, IntBuffer meshMaterial, int boneCount, BoneInfo bones, Transform bindPose) Construct with your own memory allocator and fields initialized as specified