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.Vector3
binormal
com.badlogic.gdx.graphics.Color
color
boolean
hasBinormal
boolean
hasColor
boolean
hasNormal
boolean
hasPosition
boolean
hasTangent
boolean
hasUV
com.badlogic.gdx.math.Vector3
normal
com.badlogic.gdx.math.Vector3
position
com.badlogic.gdx.math.Vector3
tangent
com.badlogic.gdx.math.Vector2
uv
-
Constructor Summary
Constructors Constructor Description VertexInfo()
-
Method Summary
Modifier and Type Method Description IntMeshPartBuilder.VertexInfo
lerp(IntMeshPartBuilder.VertexInfo target, float alpha)
void
reset()
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)
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)
IntMeshPartBuilder.VertexInfo
set(IntMeshPartBuilder.VertexInfo other)
IntMeshPartBuilder.VertexInfo
setBin(float x, float y, float z)
IntMeshPartBuilder.VertexInfo
setBin(com.badlogic.gdx.math.Vector3 bin)
IntMeshPartBuilder.VertexInfo
setCol(float r, float g, float b, float a)
IntMeshPartBuilder.VertexInfo
setCol(com.badlogic.gdx.graphics.Color col)
IntMeshPartBuilder.VertexInfo
setNor(float x, float y, float z)
IntMeshPartBuilder.VertexInfo
setNor(com.badlogic.gdx.math.Vector3 nor)
IntMeshPartBuilder.VertexInfo
setPos(float x, float y, float z)
IntMeshPartBuilder.VertexInfo
setPos(com.badlogic.gdx.math.Vector3 pos)
IntMeshPartBuilder.VertexInfo
setTan(float x, float y, float z)
IntMeshPartBuilder.VertexInfo
setTan(com.badlogic.gdx.math.Vector3 tan)
IntMeshPartBuilder.VertexInfo
setUV(float u, float v)
IntMeshPartBuilder.VertexInfo
setUV(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:
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
-