Package gaiasky.util.gdx
Class IntMeshPartBuilder.VertexInfo
java.lang.Object
gaiasky.util.gdx.IntMeshPartBuilder.VertexInfo
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
- Enclosing interface:
IntMeshPartBuilder
public static class IntMeshPartBuilder.VertexInfo
extends Object
implements com.badlogic.gdx.utils.Pool.Poolable
Class that contains all vertex information the builder can use.
-
Field Summary
Modifier and TypeFieldDescriptionfinal com.badlogic.gdx.math.Vector3
final com.badlogic.gdx.graphics.Color
boolean
boolean
boolean
boolean
boolean
boolean
final com.badlogic.gdx.math.Vector3
final com.badlogic.gdx.math.Vector3
final com.badlogic.gdx.math.Vector3
final com.badlogic.gdx.math.Vector2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlerp
(IntMeshPartBuilder.VertexInfo target, float alpha) void
reset()
set
(com.badlogic.gdx.math.Vector3 pos, com.badlogic.gdx.math.Vector3 nor, com.badlogic.gdx.graphics.Color col, com.badlogic.gdx.math.Vector2 uv) set
(com.badlogic.gdx.math.Vector3 pos, com.badlogic.gdx.math.Vector3 nor, com.badlogic.gdx.math.Vector3 tan, com.badlogic.gdx.math.Vector3 bin, com.badlogic.gdx.graphics.Color col, com.badlogic.gdx.math.Vector2 uv) set
(IntMeshPartBuilder.VertexInfo other) setBin
(float x, float y, float z) setBin
(com.badlogic.gdx.math.Vector3 bin) setCol
(float r, float g, float b, float a) setCol
(com.badlogic.gdx.graphics.Color col) setNor
(float x, float y, float z) setNor
(com.badlogic.gdx.math.Vector3 nor) setPos
(float x, float y, float z) setPos
(com.badlogic.gdx.math.Vector3 pos) setTan
(float x, float y, float z) setTan
(com.badlogic.gdx.math.Vector3 tan) setUV
(float u, float v) setUV
(com.badlogic.gdx.math.Vector2 uv)
-
Field Details
-
position
public final com.badlogic.gdx.math.Vector3 position -
normal
public final com.badlogic.gdx.math.Vector3 normal -
tangent
public final com.badlogic.gdx.math.Vector3 tangent -
binormal
public final com.badlogic.gdx.math.Vector3 binormal -
color
public final com.badlogic.gdx.graphics.Color color -
uv
public final com.badlogic.gdx.math.Vector2 uv -
hasPosition
public boolean hasPosition -
hasNormal
public boolean hasNormal -
hasTangent
public boolean hasTangent -
hasBinormal
public boolean hasBinormal -
hasColor
public boolean hasColor -
hasUV
public boolean hasUV
-
-
Constructor Details
-
VertexInfo
public VertexInfo()
-
-
Method Details
-
reset
public void reset()- Specified by:
reset
in interfacecom.badlogic.gdx.utils.Pool.Poolable
-
set
public IntMeshPartBuilder.VertexInfo set(com.badlogic.gdx.math.Vector3 pos, com.badlogic.gdx.math.Vector3 nor, com.badlogic.gdx.graphics.Color col, com.badlogic.gdx.math.Vector2 uv) -
set
public IntMeshPartBuilder.VertexInfo set(com.badlogic.gdx.math.Vector3 pos, com.badlogic.gdx.math.Vector3 nor, com.badlogic.gdx.math.Vector3 tan, com.badlogic.gdx.math.Vector3 bin, com.badlogic.gdx.graphics.Color col, com.badlogic.gdx.math.Vector2 uv) -
set
-
setPos
-
setPos
-
setNor
-
setNor
-
setTan
-
setTan
-
setBin
-
setBin
-
setCol
-
setCol
-
setUV
-
setUV
-
lerp
-