Documentation
¶
Index ¶
- type Face
- func (face *Face) AddLightmap(lightmap *texture.Lightmap)
- func (face *Face) AddMaterial(mat material.IMaterial)
- func (face *Face) IsLightmapped() bool
- func (face *Face) Length() int32
- func (face *Face) Lightmap() *texture.Lightmap
- func (face *Face) Material() material.IMaterial
- func (face *Face) Offset() int32
- type IMesh
- type Mesh
- func (mesh *Mesh) AddLightmapCoordinate(uv ...float32)
- func (mesh *Mesh) AddNormal(normal ...float32)
- func (mesh *Mesh) AddTangent(tangent ...float32)
- func (mesh *Mesh) AddUV(uv ...float32)
- func (mesh *Mesh) AddVertex(vertex ...float32)
- func (mesh *Mesh) GenerateTangents()
- func (mesh *Mesh) GetLightmap() texture.ITexture
- func (mesh *Mesh) GetMaterial() material.IMaterial
- func (mesh *Mesh) LightmapCoordinates() []float32
- func (mesh *Mesh) Normals() []float32
- func (mesh *Mesh) SetLightmap(mat texture.ITexture)
- func (mesh *Mesh) SetMaterial(mat material.IMaterial)
- func (mesh *Mesh) Tangents() []float32
- func (mesh *Mesh) UVs() []float32
- func (mesh *Mesh) Vertices() []float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Face ¶
type Face struct {
// contains filtered or unexported fields
}
func (*Face) AddLightmap ¶
func (*Face) AddMaterial ¶
func (*Face) IsLightmapped ¶
type IMesh ¶
type IMesh interface {
AddVertex(...float32)
AddNormal(...float32)
AddUV(...float32)
AddLightmapCoordinate(...float32)
GenerateTangents()
Vertices() []float32
Normals() []float32
UVs() []float32
Tangents() []float32
LightmapCoordinates() []float32
GetMaterial() material.IMaterial
SetMaterial(material.IMaterial)
GetLightmap() texture.ITexture
SetLightmap(texture.ITexture)
}
Generic Mesh object Most renderable objects should implement this, but there are probably many custom cases that may not
type Mesh ¶
type Mesh struct {
// contains filtered or unexported fields
}
func (*Mesh) AddLightmapCoordinate ¶
func (*Mesh) AddTangent ¶
func (*Mesh) GenerateTangents ¶
func (mesh *Mesh) GenerateTangents()
func (*Mesh) GetLightmap ¶
func (*Mesh) GetMaterial ¶
func (*Mesh) LightmapCoordinates ¶
func (*Mesh) SetLightmap ¶
func (*Mesh) SetMaterial ¶
Click to show internal directories.
Click to hide internal directories.