• Articles
  • Api Documentation
Show / Hide Table of Contents
  • net.abi.abisEngine.components
    • Camera
    • DirectionalLight
    • FreeLook
    • FreeMove
    • Light
    • LockView
    • MeshRenderer
    • PointLight
    • SceneComponent
    • SpotLight
  • net.abi.abisEngine.core
    • CoreEngine
    • Main
    • Time
  • net.abi.abisEngine.entities
    • Entity
    • EntityI
  • net.abi.abisEngine.handlers.file
    • FileHandler
    • PathHandle
    • PathResolveI
    • PathType
  • net.abi.abisEngine.handlers.logging
    • Logger
    • LogLevel
    • LogManager
  • net.abi.abisEngine.input
    • GLFWInput
    • GLFWMouseAndKeyboardInput
  • net.abi.abisEngine.math
    • Math
    • Matrix
    • Matrix4f
    • Quaternion
    • Transform
    • Vector2f
    • Vector2i
    • Vector3f
    • Vector3i
    • Vector4f
    • Vector4fI
  • net.abi.abisEngine.rendering.asset
    • AssetClassifier
    • AssetContainer
    • AssetI
    • AssetLoaderParameters
    • AssetLoaderParameters.LoadedCallback
    • AssetLoadTask
    • AssetManager
    • AssetStore
    • TaskCompleteHandler
  • net.abi.abisEngine.rendering.asset.loaders
    • AssetLoader
    • AsyncAssetLoader
    • ModelSceneLoader
    • ModelSceneLoader.Parameter
    • SyncAssetLoader
  • net.abi.abisEngine.rendering.image
    • AEImage
    • ImageMetaData
    • PixelMap
  • net.abi.abisEngine.rendering.material
    • Material
  • net.abi.abisEngine.rendering.mesh
    • AIMeshLoader
    • Mesh
    • MeshResource
    • Model
    • ModelScene
    • Vertex
  • net.abi.abisEngine.rendering.pipeline
    • RenderingEngine
  • net.abi.abisEngine.rendering.scene
    • Scene
    • SceneManager
  • net.abi.abisEngine.rendering.scene.scenes
    • EngineSplashScreen
  • net.abi.abisEngine.rendering.shader
    • AEShader
    • AEShader.AEShaderType
    • AEShaderResource
    • ForwardAmbientShader
    • ForwardDirectionalShader
    • ForwardPointShader
    • ForwardSpotShader
    • GLSLLayoutQualifier
    • GLSLUniform
    • GLSLUniformBlockObject
    • GLSLUniformBlockObjectData
    • Shader
    • Shader.ShaderSource
    • Shader.ShaderType
    • ShaderResource
    • WireFrameShader
  • net.abi.abisEngine.rendering.shader.compiler
    • AEGLInfo
    • AEShaderCompiler
    • AEShaderCompiler.GLSLStruct
    • AEShaderCompiler.ShaderData
    • AEShaderCompiler.ShaderSource
    • Tokens
    • Tokens.Keywords
    • Tokens.Operators
    • Tokens.Qualifiers
  • net.abi.abisEngine.rendering.shader.loader
    • AEShaderLoader
  • net.abi.abisEngine.rendering.shader.parser
    • AEShaderParserYAML
  • net.abi.abisEngine.rendering.shader.parser.fileTypes.yaml
    • AEDemoProperty
    • AEPrepProperty
    • AEShaderFileYAML
    • AEShaderGLSLProgram
    • AEShaderPass
  • net.abi.abisEngine.rendering.texture
    • Texture
    • Texture.TextureData
    • TextureResource
  • net.abi.abisEngine.rendering.window
    • GLFWWindow
    • GLFWWindow.AnimatedCursor
    • GLFWWindow.CursorI
    • GLFWWindow.GLFWWindowProperties
    • GLFWWindow.StaticCursor
    • GLFWWindow.StaticCursorResource
    • GLFWWindowManager
    • GLFWWindowManager.GLFWWindowContext
  • net.abi.abisEngine.rendering.window.models
    • EngineLoader
  • net.abi.abisEngine.util
    • Attenuation
    • Color
    • Expendable
    • IOUtil
    • MappedValues
    • ThreadUtils
    • Util
  • net.abi.abisEngine.util.async
    • Async
    • AsyncResult
    • AsyncTask
    • AsyncThreadDispatcher
  • net.abi.abisEngine.util.cacheing
    • GenericCache
    • GenericCacheI
    • TwoFactorGenericCache
    • TwoFactorGenericCacheI
  • net.abi.abisEngine.util.exceptions
    • AECursorInitializationException
    • AEException
    • AEGLFWWindowInitializationException
    • AEImageManipulationException
    • AEIOException
    • AERuntimeException
    • AEShaderCompilerRuntimeException
  • tests.renderTest
    • Start
  • tests.renderTest.entitys
    • FlatPlane
    • MonkeyHead
  • tests.renderTest.materials
    • BricksOne
    • BricksTwo
  • tests.renderTest.scenes
    • MainMenu
    • TestGame
  • tests.renderTest.windows
    • MainGame

Class Color

This Class Allows To Have A Alpha Value To Be Set And Wraps Around A Vector3f To Include Alpha As Well.

Inheritance
java.lang.Object
Vector3f
Color
Inherited Members
Vector3f.abs()
Vector3f.absolute()
Vector3f.absolute(Vector3f dest)
Vector3f.add(Vector3f r)
Vector3f.add(float r)
Vector3f.add(float xr, float yr, float zr)
Vector3f.angle(Vector3f v)
Vector3f.angleCos(Vector3f v)
Vector3f.angleSigned(Vector3f v, Vector3f n)
Vector3f.angleSigned(float x, float y, float z, float nx, float ny, float nz)
Vector3f.ceil()
Vector3f.ceil(Vector3f dest)
Vector3f.cross(Vector3f r)
Vector3f.distance(Vector3f v)
Vector3f.distance(float x, float y, float z)
Vector3f.distance(float x1, float y1, float z1, float x2, float y2, float z2)
Vector3f.distanceSquared(Vector3f v)
Vector3f.distanceSquared(float x, float y, float z)
Vector3f.distanceSquared(float x1, float y1, float z1, float x2, float y2, float z2)
Vector3f.div(Vector3f r)
Vector3f.div(float r)
Vector3f.dot(Vector3f r)
Vector3f.dot(float x, float y, float z)
Vector3f.equals(Vector3f r)
Vector3f.floor()
Vector3f.floor(Vector3f dest)
Vector3f.get(int component)
Vector3f.getXY()
Vector3f.getXZ()
Vector3f.getYX()
Vector3f.getYZ()
Vector3f.getZX()
Vector3f.getZY()
Vector3f.half(Vector3f other)
Vector3f.half(float x, float y, float z)
Vector3f.half(Vector3f other, Vector3f dest)
Vector3f.half(float x, float y, float z, Vector3f dest)
Vector3f.hashCode()
Vector3f.hermite(Vector3f t0, Vector3f v1, Vector3f t1, float t, Vector3f dest)
Vector3f.isFinite()
Vector3f.length()
Vector3f.lengthSquared()
Vector3f.lengthSquared(float x, float y, float z)
Vector3f.lerp(Vector3f dest, float lerpFactor)
Vector3f.max()
Vector3f.maxComponent()
Vector3f.min(Vector3f v)
Vector3f.minComponent()
Vector3f.mul(Vector3f r)
Vector3f.mul(float r)
Vector3f.negate()
Vector3f.negate(Vector3f dest)
Vector3f.orthogonalize(Vector3f v, Vector3f dest)
Vector3f.orthogonalize(Vector3f v)
Vector3f.orthogonalizeUnit(Vector3f v, Vector3f dest)
Vector3f.orthogonalizeUnit(Vector3f v)
Vector3f.reflect(Vector3f normal)
Vector3f.reflect(float x, float y, float z)
Vector3f.reflect(Vector3f normal, Vector3f dest)
Vector3f.reflect(float x, float y, float z, Vector3f dest)
Vector3f.rotate(float angleInDegrees, Vector3f axis)
Vector3f.rotate(Quaternion rotation)
Vector3f.rotateAxis(float angle, float x, float y, float z)
Vector3f.rotateAxis(float angle, float aX, float aY, float aZ, Vector3f dest)
Vector3f.rotateX(float angle)
Vector3f.rotateX(float angle, Vector3f dest)
Vector3f.rotateY(float angle)
Vector3f.rotateY(float angle, Vector3f dest)
Vector3f.rotateZ(float angle)
Vector3f.rotateZ(float angle, Vector3f dest)
Vector3f.round()
Vector3f.round(Vector3f dest)
Vector3f.set(float x, float y, float z)
Vector3f.set(Vector3f other)
Vector3f.setX(float x)
Vector3f.setY(float y)
Vector3f.setZ(float z)
Vector3f.smoothStep(Vector3f v, float t, Vector3f dest)
Vector3f.sub(Vector3f r)
Vector3f.sub(float r)
Vector3f.toString()
Vector3f.Vector3f(float x, float y, float z)
Vector3f.x()
Vector3f.y()
Vector3f.z()
Vector3f.zero()
Syntax
public class Color extends Vector3f

Constructors

Color(float red, float green, float blue)

Declaration
public Color(float red, float green, float blue)
Parameters
Type Name Description
float red
float green
float blue

Color(float red, float green, float blue, float alpha)

Declaration
public Color(float red, float green, float blue, float alpha)
Parameters
Type Name Description
float red
float green
float blue
float alpha

Color(String hex)

Declaration
public Color(String hex)
Parameters
Type Name Description
String hex

Color(String hex, float alpha)

Declaration
public Color(String hex, float alpha)
Parameters
Type Name Description
String hex
float alpha

Color(Vector3f colorInVector3f)

Declaration
public Color(Vector3f colorInVector3f)
Parameters
Type Name Description
Vector3f colorInVector3f

Color(Vector3f colorInVector3f, float alpha)

Declaration
public Color(Vector3f colorInVector3f, float alpha)
Parameters
Type Name Description
Vector3f colorInVector3f
float alpha

Fields

DEFAULT_COLOR

Declaration
public static final Color DEFAULT_COLOR= new Color(1.0f, 1.0f, 1.0f, 1.0f)
Field Value
Type Description
final Color

SIZEOF

Declaration
public static final int SIZEOF= 4
Field Value
Type Description
final int

Methods

getAlpha()

Declaration
public float getAlpha()
Returns
Type Description
float

getBlue()

Declaration
public float getBlue()
Returns
Type Description
float

getGreen()

Declaration
public float getGreen()
Returns
Type Description
float

getRed()

Declaration
public float getRed()
Returns
Type Description
float

hex2Rgb(String colorStr)

Declaration
public static Color hex2Rgb(String colorStr)
Parameters
Type Name Description
String colorStr

e.g. "#FFFFFF"\ Beware if you are using this for any open gl functions the value needs to be normalized see Vector3f normalize.

Returns
Type Description
Color

normalize()

Declaration
public Color normalize()
Returns
Type Description
Color

setAlpha(float alpha)

Declaration
public void setAlpha(float alpha)
Parameters
Type Name Description
float alpha

setBlue(float blue)

Declaration
public void setBlue(float blue)
Parameters
Type Name Description
float blue

setGreen(float green)

Declaration
public void setGreen(float green)
Parameters
Type Name Description
float green

setRed(float red)

Declaration
public void setRed(float red)
Parameters
Type Name Description
float red
Back to top Generated by DocFX