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 java.lang.Object
implements com.badlogic.gdx.utils.Pool.Poolable
Class that contains all vertex information the builder can use.
-
Field Summary
Fields Modifier and Type Field Description com.badlogic.gdx.math.Vector3binormalcom.badlogic.gdx.graphics.ColorcolorbooleanhasBinormalbooleanhasColorbooleanhasNormalbooleanhasPositionbooleanhasTangentbooleanhasUVcom.badlogic.gdx.math.Vector3normalcom.badlogic.gdx.math.Vector3positioncom.badlogic.gdx.math.Vector3tangentcom.badlogic.gdx.math.Vector2uv -
Constructor Summary
Constructors Constructor Description VertexInfo() -
Method Summary
Modifier and Type Method Description IntMeshPartBuilder.VertexInfolerp(IntMeshPartBuilder.VertexInfo target, float alpha)voidreset()IntMeshPartBuilder.VertexInfoset(com.badlogic.gdx.math.Vector3 pos, com.badlogic.gdx.math.Vector3 nor, com.badlogic.gdx.graphics.Color col, com.badlogic.gdx.math.Vector2 uv)IntMeshPartBuilder.VertexInfoset(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)IntMeshPartBuilder.VertexInfoset(IntMeshPartBuilder.VertexInfo other)IntMeshPartBuilder.VertexInfosetBin(float x, float y, float z)IntMeshPartBuilder.VertexInfosetBin(com.badlogic.gdx.math.Vector3 bin)IntMeshPartBuilder.VertexInfosetCol(float r, float g, float b, float a)IntMeshPartBuilder.VertexInfosetCol(com.badlogic.gdx.graphics.Color col)IntMeshPartBuilder.VertexInfosetNor(float x, float y, float z)IntMeshPartBuilder.VertexInfosetNor(com.badlogic.gdx.math.Vector3 nor)IntMeshPartBuilder.VertexInfosetPos(float x, float y, float z)IntMeshPartBuilder.VertexInfosetPos(com.badlogic.gdx.math.Vector3 pos)IntMeshPartBuilder.VertexInfosetTan(float x, float y, float z)IntMeshPartBuilder.VertexInfosetTan(com.badlogic.gdx.math.Vector3 tan)IntMeshPartBuilder.VertexInfosetUV(float u, float v)IntMeshPartBuilder.VertexInfosetUV(com.badlogic.gdx.math.Vector2 uv)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
position
public final com.badlogic.gdx.math.Vector3 position -
hasPosition
public boolean hasPosition -
normal
public final com.badlogic.gdx.math.Vector3 normal -
hasNormal
public boolean hasNormal -
tangent
public final com.badlogic.gdx.math.Vector3 tangent -
hasTangent
public boolean hasTangent -
binormal
public final com.badlogic.gdx.math.Vector3 binormal -
hasBinormal
public boolean hasBinormal -
color
public final com.badlogic.gdx.graphics.Color color -
hasColor
public boolean hasColor -
uv
public final com.badlogic.gdx.math.Vector2 uv -
hasUV
public boolean hasUV
-
-
Constructor Details
-
VertexInfo
public VertexInfo()
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin 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
-