Documentation ¶
Index ¶
- Constants
- type OpenGLES2CubeMap
- func (this *OpenGLES2CubeMap) Bind(unit uint32)
- func (this *OpenGLES2CubeMap) GetData() (data []byte, width int, height int)
- func (this *OpenGLES2CubeMap) GetHeight() int
- func (this *OpenGLES2CubeMap) GetKeyColor() color.Color
- func (this *OpenGLES2CubeMap) GetModColor() color.Color
- func (this *OpenGLES2CubeMap) GetName() string
- func (this *OpenGLES2CubeMap) GetWidth() int
- func (this *OpenGLES2CubeMap) Load(data []byte, width, height int, shadowMap bool)
- func (this *OpenGLES2CubeMap) LoadFromImage(img image.Image)
- func (this *OpenGLES2CubeMap) SetBorderColor(col color.Color)
- func (this *OpenGLES2CubeMap) SetBorderDepth(depth float32)
- func (this *OpenGLES2CubeMap) SetFiltering(filtering int)
- func (this *OpenGLES2CubeMap) SetKeyColor(col color.Color)
- func (this *OpenGLES2CubeMap) SetModColor(col color.Color)
- func (this *OpenGLES2CubeMap) SetWrapping(wrapping int)
- func (this *OpenGLES2CubeMap) Terminate()
- func (this *OpenGLES2CubeMap) Unbind(unit uint32)
- type OpenGLES2InstancedMesh3D
- func (this *OpenGLES2InstancedMesh3D) AABB() gohome.AxisAlignedBoundingBox
- func (this *OpenGLES2InstancedMesh3D) AddValue(valueType int)
- func (this *OpenGLES2InstancedMesh3D) AddValueFront(valueType int)
- func (this *OpenGLES2InstancedMesh3D) AddVertices(vertices []gohome.Mesh3DVertex, indices []uint32)
- func (this *OpenGLES2InstancedMesh3D) CalculateTangents()
- func (this *OpenGLES2InstancedMesh3D) CalculateTangentsRoutine(startIndex, maxIndex int, wg *sync.WaitGroup)
- func (this *OpenGLES2InstancedMesh3D) Copy() gohome.Mesh3D
- func (this *OpenGLES2InstancedMesh3D) GetIndices() []uint32
- func (this *OpenGLES2InstancedMesh3D) GetMaterial() *gohome.Material
- func (this *OpenGLES2InstancedMesh3D) GetName() string
- func (this *OpenGLES2InstancedMesh3D) GetNumIndices() int
- func (this *OpenGLES2InstancedMesh3D) GetNumInstances() int
- func (this *OpenGLES2InstancedMesh3D) GetNumUsedInstances() int
- func (this *OpenGLES2InstancedMesh3D) GetNumVertices() int
- func (this *OpenGLES2InstancedMesh3D) GetVertices() []gohome.Mesh3DVertex
- func (this *OpenGLES2InstancedMesh3D) HasUV() bool
- func (this *OpenGLES2InstancedMesh3D) Load()
- func (this *OpenGLES2InstancedMesh3D) LoadedToGPU() bool
- func (this *OpenGLES2InstancedMesh3D) Render()
- func (this *OpenGLES2InstancedMesh3D) SetF(index int, value []float32)
- func (this *OpenGLES2InstancedMesh3D) SetM2(index int, value []mgl32.Mat2)
- func (this *OpenGLES2InstancedMesh3D) SetM3(index int, value []mgl32.Mat3)
- func (this *OpenGLES2InstancedMesh3D) SetM4(index int, value []mgl32.Mat4)
- func (this *OpenGLES2InstancedMesh3D) SetMaterial(mat *gohome.Material)
- func (this *OpenGLES2InstancedMesh3D) SetName(index, value_type int, value string)
- func (this *OpenGLES2InstancedMesh3D) SetNumInstances(n int)
- func (this *OpenGLES2InstancedMesh3D) SetNumUsedInstances(n int)
- func (this *OpenGLES2InstancedMesh3D) SetV2(index int, value []mgl32.Vec2)
- func (this *OpenGLES2InstancedMesh3D) SetV3(index int, value []mgl32.Vec3)
- func (this *OpenGLES2InstancedMesh3D) SetV4(index int, value []mgl32.Vec4)
- func (this *OpenGLES2InstancedMesh3D) Terminate()
- type OpenGLES2Mesh2D
- type OpenGLES2Mesh3D
- func (oglm *OpenGLES2Mesh3D) AABB() gohome.AxisAlignedBoundingBox
- func (oglm *OpenGLES2Mesh3D) AddVertices(vertices []gohome.Mesh3DVertex, indices []uint32)
- func (oglm *OpenGLES2Mesh3D) CalculateTangents()
- func (oglm *OpenGLES2Mesh3D) CalculateTangentsRoutine(startIndex, maxIndex int, wg *sync.WaitGroup)
- func (oglm *OpenGLES2Mesh3D) Copy() gohome.Mesh3D
- func (oglm *OpenGLES2Mesh3D) GetIndices() []uint32
- func (oglm *OpenGLES2Mesh3D) GetMaterial() *gohome.Material
- func (oglm *OpenGLES2Mesh3D) GetName() string
- func (oglm *OpenGLES2Mesh3D) GetNumIndices() int
- func (oglm *OpenGLES2Mesh3D) GetNumVertices() int
- func (oglm *OpenGLES2Mesh3D) GetVertices() []gohome.Mesh3DVertex
- func (oglm *OpenGLES2Mesh3D) HasUV() bool
- func (oglm *OpenGLES2Mesh3D) Load()
- func (oglm *OpenGLES2Mesh3D) LoadedToGPU() bool
- func (oglm *OpenGLES2Mesh3D) Render()
- func (oglm *OpenGLES2Mesh3D) SetMaterial(mat *gohome.Material)
- func (oglm *OpenGLES2Mesh3D) Terminate()
- type OpenGLES2RenderTexture
- func (this *OpenGLES2RenderTexture) Bind(unit uint32)
- func (this *OpenGLES2RenderTexture) BindIndex(index int, unit uint32)
- func (this *OpenGLES2RenderTexture) Blit(rtex gohome.RenderTexture)
- func (this *OpenGLES2RenderTexture) ChangeSize(width, height int)
- func (this *OpenGLES2RenderTexture) Create(name string, width, height, textures int, ...)
- func (this *OpenGLES2RenderTexture) GetData() ([]byte, int, int)
- func (this *OpenGLES2RenderTexture) GetHeight() int
- func (this *OpenGLES2RenderTexture) GetKeyColor() color.Color
- func (this *OpenGLES2RenderTexture) GetModColor() color.Color
- func (this *OpenGLES2RenderTexture) GetName() string
- func (this *OpenGLES2RenderTexture) GetWidth() int
- func (this *OpenGLES2RenderTexture) Load(data []byte, width, height int, shadowMap bool)
- func (ogltex *OpenGLES2RenderTexture) LoadFromImage(img image.Image)
- func (this *OpenGLES2RenderTexture) SetAsTarget()
- func (this *OpenGLES2RenderTexture) SetBorderColor(col color.Color)
- func (this *OpenGLES2RenderTexture) SetBorderDepth(depth float32)
- func (this *OpenGLES2RenderTexture) SetFiltering(filtering int)
- func (this *OpenGLES2RenderTexture) SetKeyColor(col color.Color)
- func (this *OpenGLES2RenderTexture) SetModColor(col color.Color)
- func (this *OpenGLES2RenderTexture) SetWrapping(wrapping int)
- func (this *OpenGLES2RenderTexture) Terminate()
- func (this *OpenGLES2RenderTexture) Unbind(unit uint32)
- func (this *OpenGLES2RenderTexture) UnbindIndex(index int, unit uint32)
- func (this *OpenGLES2RenderTexture) UnsetAsTarget()
- type OpenGLES2Renderer
- func (this *OpenGLES2Renderer) AfterInit()
- func (this *OpenGLES2Renderer) AfterRender()
- func (*OpenGLES2Renderer) ClearScreen(c color.Color)
- func (*OpenGLES2Renderer) CreateCubeMap(name string) gohome.CubeMap
- func (*OpenGLES2Renderer) CreateInstancedMesh3D(name string) gohome.InstancedMesh3D
- func (*OpenGLES2Renderer) CreateMesh2D(name string) gohome.Mesh2D
- func (*OpenGLES2Renderer) CreateMesh3D(name string) gohome.Mesh3D
- func (*OpenGLES2Renderer) CreateRenderTexture(name string, width, height, textures int, ...) gohome.RenderTexture
- func (this *OpenGLES2Renderer) CreateShape2DInterface(name string) gohome.Shape2DInterface
- func (*OpenGLES2Renderer) CreateShape3DInterface(name string) gohome.Shape3DInterface
- func (*OpenGLES2Renderer) CreateTexture(name string, multiSampled bool) gohome.Texture
- func (this *OpenGLES2Renderer) DecrementTextureUnit(amount uint32)
- func (this *OpenGLES2Renderer) GetBackgroundColor() color.Color
- func (this *OpenGLES2Renderer) GetMaxTextures() int
- func (this *OpenGLES2Renderer) GetName() string
- func (this *OpenGLES2Renderer) GetNativeResolution() mgl32.Vec2
- func (this *OpenGLES2Renderer) GetVersioni() uint8
- func (this *OpenGLES2Renderer) GetViewport() gohome.Viewport
- func (this *OpenGLES2Renderer) HasFunctionAvailable(function string) bool
- func (this *OpenGLES2Renderer) Init() error
- func (this *OpenGLES2Renderer) InstancedMesh3DFromLoadedMesh3D(mesh gohome.Mesh3D) gohome.InstancedMesh3D
- func (this *OpenGLES2Renderer) LoadShader(name, vertex_contents, fragment_contents, geometry_contents, ... string) (gohome.Shader, error)
- func (this *OpenGLES2Renderer) NextTextureUnit() uint32
- func (this *OpenGLES2Renderer) OnResize(newWidth, newHeight int)
- func (this *OpenGLES2Renderer) PreRender()
- func (this *OpenGLES2Renderer) RenderBackBuffer()
- func (this *OpenGLES2Renderer) SetBacckFaceCulling(b bool)
- func (this *OpenGLES2Renderer) SetBackgroundColor(bgColor color.Color)
- func (this *OpenGLES2Renderer) SetDepthTesting(b bool)
- func (this *OpenGLES2Renderer) SetNativeResolution(width, height int)
- func (this *OpenGLES2Renderer) SetViewport(viewport gohome.Viewport)
- func (this *OpenGLES2Renderer) SetWireFrame(b bool)
- func (this *OpenGLES2Renderer) Terminate()
- type OpenGLES2Shader
- func (s *OpenGLES2Shader) AddAttribute(name string, location uint32)
- func (s *OpenGLES2Shader) AddShader(shader_type uint8, src string) error
- func (s *OpenGLES2Shader) GetName() string
- func (s *OpenGLES2Shader) Link() error
- func (s *OpenGLES2Shader) SetUniformB(name string, value uint8)
- func (s *OpenGLES2Shader) SetUniformF(name string, value float32)
- func (s *OpenGLES2Shader) SetUniformI(name string, value int32)
- func (s *OpenGLES2Shader) SetUniformIV2(name string, value []int32)
- func (s *OpenGLES2Shader) SetUniformIV3(name string, value []int32)
- func (s *OpenGLES2Shader) SetUniformIV4(name string, value []int32)
- func (s *OpenGLES2Shader) SetUniformLights(lightCollectionIndex int)
- func (s *OpenGLES2Shader) SetUniformM2(name string, value mgl32.Mat2)
- func (s *OpenGLES2Shader) SetUniformM3(name string, value mgl32.Mat3)
- func (s *OpenGLES2Shader) SetUniformM4(name string, value mgl32.Mat4)
- func (s *OpenGLES2Shader) SetUniformMaterial(mat gohome.Material)
- func (s *OpenGLES2Shader) SetUniformUI(name string, value uint32)
- func (s *OpenGLES2Shader) SetUniformV2(name string, value mgl32.Vec2)
- func (s *OpenGLES2Shader) SetUniformV3(name string, value mgl32.Vec3)
- func (s *OpenGLES2Shader) SetUniformV4(name string, value mgl32.Vec4)
- func (s *OpenGLES2Shader) Setup() error
- func (s *OpenGLES2Shader) Terminate()
- func (s *OpenGLES2Shader) Unuse()
- func (s *OpenGLES2Shader) Use()
- type OpenGLES2Shape2DInterface
- func (this *OpenGLES2Shape2DInterface) AddLines(lines []gohome.Line2D)
- func (this *OpenGLES2Shape2DInterface) AddPoints(points []gohome.Shape2DVertex)
- func (this *OpenGLES2Shape2DInterface) AddTriangles(tris []gohome.Triangle2D)
- func (this *OpenGLES2Shape2DInterface) GetPoints() []gohome.Shape2DVertex
- func (this *OpenGLES2Shape2DInterface) Init()
- func (this *OpenGLES2Shape2DInterface) Load()
- func (this *OpenGLES2Shape2DInterface) Render()
- func (this *OpenGLES2Shape2DInterface) SetDrawMode(mode uint8)
- func (this *OpenGLES2Shape2DInterface) SetLineWidth(width float32)
- func (this *OpenGLES2Shape2DInterface) SetPointSize(size float32)
- func (this *OpenGLES2Shape2DInterface) Terminate()
- type OpenGLES2Shape3DInterface
- func (this *OpenGLES2Shape3DInterface) AddPoints(points []gohome.Shape3DVertex)
- func (this *OpenGLES2Shape3DInterface) GetPoints() []gohome.Shape3DVertex
- func (this *OpenGLES2Shape3DInterface) Init()
- func (this *OpenGLES2Shape3DInterface) Load()
- func (this *OpenGLES2Shape3DInterface) Render()
- func (this *OpenGLES2Shape3DInterface) SetDrawMode(drawMode uint8)
- func (this *OpenGLES2Shape3DInterface) SetLineWidth(width float32)
- func (this *OpenGLES2Shape3DInterface) SetPointSize(size float32)
- func (this *OpenGLES2Shape3DInterface) Terminate()
- type OpenGLES2Texture
- func (ogltex *OpenGLES2Texture) Bind(unit uint32)
- func (ogltex *OpenGLES2Texture) GetData() (data []byte, width int, height int)
- func (ogltex *OpenGLES2Texture) GetHeight() int
- func (ogltex *OpenGLES2Texture) GetKeyColor() color.Color
- func (ogltex *OpenGLES2Texture) GetModColor() color.Color
- func (ogltex *OpenGLES2Texture) GetName() string
- func (ogltex *OpenGLES2Texture) GetWidth() int
- func (ogltex *OpenGLES2Texture) Load(data []byte, width, height int, shadowMap bool)
- func (ogltex *OpenGLES2Texture) LoadFromImage(img image.Image)
- func (ogltex *OpenGLES2Texture) SetBorderColor(col color.Color)
- func (ogltex *OpenGLES2Texture) SetBorderDepth(depth float32)
- func (ogltex *OpenGLES2Texture) SetFiltering(filtering int)
- func (ogltex *OpenGLES2Texture) SetKeyColor(col color.Color)
- func (ogltex *OpenGLES2Texture) SetModColor(col color.Color)
- func (ogltex *OpenGLES2Texture) SetWrapping(wrapping int)
- func (ogltex *OpenGLES2Texture) Terminate()
- func (ogltex *OpenGLES2Texture) Unbind(unit uint32)
- type OpenGLError
Constants ¶
View Source
const (
NUM_GO_ROUTINES_TANGENTS_CALCULATING = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenGLES2CubeMap ¶
type OpenGLES2CubeMap struct {
// contains filtered or unexported fields
}
func CreateOpenGLES2CubeMap ¶
func CreateOpenGLES2CubeMap(name string) *OpenGLES2CubeMap
func (*OpenGLES2CubeMap) Bind ¶
func (this *OpenGLES2CubeMap) Bind(unit uint32)
func (*OpenGLES2CubeMap) GetData ¶
func (this *OpenGLES2CubeMap) GetData() (data []byte, width int, height int)
func (*OpenGLES2CubeMap) GetHeight ¶
func (this *OpenGLES2CubeMap) GetHeight() int
func (*OpenGLES2CubeMap) GetKeyColor ¶
func (this *OpenGLES2CubeMap) GetKeyColor() color.Color
func (*OpenGLES2CubeMap) GetModColor ¶
func (this *OpenGLES2CubeMap) GetModColor() color.Color
func (*OpenGLES2CubeMap) GetName ¶
func (this *OpenGLES2CubeMap) GetName() string
func (*OpenGLES2CubeMap) GetWidth ¶
func (this *OpenGLES2CubeMap) GetWidth() int
func (*OpenGLES2CubeMap) Load ¶
func (this *OpenGLES2CubeMap) Load(data []byte, width, height int, shadowMap bool)
func (*OpenGLES2CubeMap) LoadFromImage ¶
func (this *OpenGLES2CubeMap) LoadFromImage(img image.Image)
func (*OpenGLES2CubeMap) SetBorderColor ¶
func (this *OpenGLES2CubeMap) SetBorderColor(col color.Color)
func (*OpenGLES2CubeMap) SetBorderDepth ¶
func (this *OpenGLES2CubeMap) SetBorderDepth(depth float32)
func (*OpenGLES2CubeMap) SetFiltering ¶
func (this *OpenGLES2CubeMap) SetFiltering(filtering int)
func (*OpenGLES2CubeMap) SetKeyColor ¶
func (this *OpenGLES2CubeMap) SetKeyColor(col color.Color)
func (*OpenGLES2CubeMap) SetModColor ¶
func (this *OpenGLES2CubeMap) SetModColor(col color.Color)
func (*OpenGLES2CubeMap) SetWrapping ¶
func (this *OpenGLES2CubeMap) SetWrapping(wrapping int)
func (*OpenGLES2CubeMap) Terminate ¶
func (this *OpenGLES2CubeMap) Terminate()
func (*OpenGLES2CubeMap) Unbind ¶
func (this *OpenGLES2CubeMap) Unbind(unit uint32)
type OpenGLES2InstancedMesh3D ¶
type OpenGLES2InstancedMesh3D struct { Name string Material *gohome.Material // contains filtered or unexported fields }
func CreateOpenGLES2InstancedMesh3D ¶
func CreateOpenGLES2InstancedMesh3D(name string) *OpenGLES2InstancedMesh3D
func (*OpenGLES2InstancedMesh3D) AABB ¶
func (this *OpenGLES2InstancedMesh3D) AABB() gohome.AxisAlignedBoundingBox
func (*OpenGLES2InstancedMesh3D) AddValue ¶
func (this *OpenGLES2InstancedMesh3D) AddValue(valueType int)
func (*OpenGLES2InstancedMesh3D) AddValueFront ¶
func (this *OpenGLES2InstancedMesh3D) AddValueFront(valueType int)
func (*OpenGLES2InstancedMesh3D) AddVertices ¶
func (this *OpenGLES2InstancedMesh3D) AddVertices(vertices []gohome.Mesh3DVertex, indices []uint32)
func (*OpenGLES2InstancedMesh3D) CalculateTangents ¶
func (this *OpenGLES2InstancedMesh3D) CalculateTangents()
func (*OpenGLES2InstancedMesh3D) CalculateTangentsRoutine ¶
func (this *OpenGLES2InstancedMesh3D) CalculateTangentsRoutine(startIndex, maxIndex int, wg *sync.WaitGroup)
func (*OpenGLES2InstancedMesh3D) Copy ¶
func (this *OpenGLES2InstancedMesh3D) Copy() gohome.Mesh3D
func (*OpenGLES2InstancedMesh3D) GetIndices ¶
func (this *OpenGLES2InstancedMesh3D) GetIndices() []uint32
func (*OpenGLES2InstancedMesh3D) GetMaterial ¶
func (this *OpenGLES2InstancedMesh3D) GetMaterial() *gohome.Material
func (*OpenGLES2InstancedMesh3D) GetName ¶
func (this *OpenGLES2InstancedMesh3D) GetName() string
func (*OpenGLES2InstancedMesh3D) GetNumIndices ¶
func (this *OpenGLES2InstancedMesh3D) GetNumIndices() int
func (*OpenGLES2InstancedMesh3D) GetNumInstances ¶
func (this *OpenGLES2InstancedMesh3D) GetNumInstances() int
func (*OpenGLES2InstancedMesh3D) GetNumUsedInstances ¶
func (this *OpenGLES2InstancedMesh3D) GetNumUsedInstances() int
func (*OpenGLES2InstancedMesh3D) GetNumVertices ¶
func (this *OpenGLES2InstancedMesh3D) GetNumVertices() int
func (*OpenGLES2InstancedMesh3D) GetVertices ¶
func (this *OpenGLES2InstancedMesh3D) GetVertices() []gohome.Mesh3DVertex
func (*OpenGLES2InstancedMesh3D) HasUV ¶
func (this *OpenGLES2InstancedMesh3D) HasUV() bool
func (*OpenGLES2InstancedMesh3D) Load ¶
func (this *OpenGLES2InstancedMesh3D) Load()
func (*OpenGLES2InstancedMesh3D) LoadedToGPU ¶
func (this *OpenGLES2InstancedMesh3D) LoadedToGPU() bool
func (*OpenGLES2InstancedMesh3D) Render ¶
func (this *OpenGLES2InstancedMesh3D) Render()
func (*OpenGLES2InstancedMesh3D) SetF ¶
func (this *OpenGLES2InstancedMesh3D) SetF(index int, value []float32)
func (*OpenGLES2InstancedMesh3D) SetM2 ¶
func (this *OpenGLES2InstancedMesh3D) SetM2(index int, value []mgl32.Mat2)
func (*OpenGLES2InstancedMesh3D) SetM3 ¶
func (this *OpenGLES2InstancedMesh3D) SetM3(index int, value []mgl32.Mat3)
func (*OpenGLES2InstancedMesh3D) SetM4 ¶
func (this *OpenGLES2InstancedMesh3D) SetM4(index int, value []mgl32.Mat4)
func (*OpenGLES2InstancedMesh3D) SetMaterial ¶
func (this *OpenGLES2InstancedMesh3D) SetMaterial(mat *gohome.Material)
func (*OpenGLES2InstancedMesh3D) SetName ¶
func (this *OpenGLES2InstancedMesh3D) SetName(index, value_type int, value string)
func (*OpenGLES2InstancedMesh3D) SetNumInstances ¶
func (this *OpenGLES2InstancedMesh3D) SetNumInstances(n int)
func (*OpenGLES2InstancedMesh3D) SetNumUsedInstances ¶
func (this *OpenGLES2InstancedMesh3D) SetNumUsedInstances(n int)
func (*OpenGLES2InstancedMesh3D) SetV2 ¶
func (this *OpenGLES2InstancedMesh3D) SetV2(index int, value []mgl32.Vec2)
func (*OpenGLES2InstancedMesh3D) SetV3 ¶
func (this *OpenGLES2InstancedMesh3D) SetV3(index int, value []mgl32.Vec3)
func (*OpenGLES2InstancedMesh3D) SetV4 ¶
func (this *OpenGLES2InstancedMesh3D) SetV4(index int, value []mgl32.Vec4)
func (*OpenGLES2InstancedMesh3D) Terminate ¶
func (this *OpenGLES2InstancedMesh3D) Terminate()
type OpenGLES2Mesh2D ¶
type OpenGLES2Mesh2D struct { Name string // contains filtered or unexported fields }
func CreateOpenGLES2Mesh2D ¶
func CreateOpenGLES2Mesh2D(name string) *OpenGLES2Mesh2D
func (*OpenGLES2Mesh2D) AddVertices ¶
func (oglm *OpenGLES2Mesh2D) AddVertices(vertices []gohome.Mesh2DVertex, indices []uint32)
func (*OpenGLES2Mesh2D) Load ¶
func (oglm *OpenGLES2Mesh2D) Load()
func (*OpenGLES2Mesh2D) Render ¶
func (oglm *OpenGLES2Mesh2D) Render()
func (*OpenGLES2Mesh2D) Terminate ¶
func (oglm *OpenGLES2Mesh2D) Terminate()
type OpenGLES2Mesh3D ¶
type OpenGLES2Mesh3D struct { Name string Material *gohome.Material // contains filtered or unexported fields }
func CreateOpenGLES2Mesh3D ¶
func CreateOpenGLES2Mesh3D(name string) *OpenGLES2Mesh3D
func (*OpenGLES2Mesh3D) AABB ¶
func (oglm *OpenGLES2Mesh3D) AABB() gohome.AxisAlignedBoundingBox
func (*OpenGLES2Mesh3D) AddVertices ¶
func (oglm *OpenGLES2Mesh3D) AddVertices(vertices []gohome.Mesh3DVertex, indices []uint32)
func (*OpenGLES2Mesh3D) CalculateTangents ¶
func (oglm *OpenGLES2Mesh3D) CalculateTangents()
func (*OpenGLES2Mesh3D) CalculateTangentsRoutine ¶
func (oglm *OpenGLES2Mesh3D) CalculateTangentsRoutine(startIndex, maxIndex int, wg *sync.WaitGroup)
func (*OpenGLES2Mesh3D) Copy ¶
func (oglm *OpenGLES2Mesh3D) Copy() gohome.Mesh3D
func (*OpenGLES2Mesh3D) GetIndices ¶
func (oglm *OpenGLES2Mesh3D) GetIndices() []uint32
func (*OpenGLES2Mesh3D) GetMaterial ¶
func (oglm *OpenGLES2Mesh3D) GetMaterial() *gohome.Material
func (*OpenGLES2Mesh3D) GetName ¶
func (oglm *OpenGLES2Mesh3D) GetName() string
func (*OpenGLES2Mesh3D) GetNumIndices ¶
func (oglm *OpenGLES2Mesh3D) GetNumIndices() int
func (*OpenGLES2Mesh3D) GetNumVertices ¶
func (oglm *OpenGLES2Mesh3D) GetNumVertices() int
func (*OpenGLES2Mesh3D) GetVertices ¶
func (oglm *OpenGLES2Mesh3D) GetVertices() []gohome.Mesh3DVertex
func (*OpenGLES2Mesh3D) HasUV ¶
func (oglm *OpenGLES2Mesh3D) HasUV() bool
func (*OpenGLES2Mesh3D) Load ¶
func (oglm *OpenGLES2Mesh3D) Load()
func (*OpenGLES2Mesh3D) LoadedToGPU ¶
func (oglm *OpenGLES2Mesh3D) LoadedToGPU() bool
func (*OpenGLES2Mesh3D) Render ¶
func (oglm *OpenGLES2Mesh3D) Render()
func (*OpenGLES2Mesh3D) SetMaterial ¶
func (oglm *OpenGLES2Mesh3D) SetMaterial(mat *gohome.Material)
func (*OpenGLES2Mesh3D) Terminate ¶
func (oglm *OpenGLES2Mesh3D) Terminate()
type OpenGLES2RenderTexture ¶
type OpenGLES2RenderTexture struct { Name string // contains filtered or unexported fields }
func CreateOpenGLES2RenderTexture ¶
func CreateOpenGLES2RenderTexture(name string, width, height, textures int, depthBuffer, multiSampled, shadowMap, cubeMap bool) *OpenGLES2RenderTexture
func (*OpenGLES2RenderTexture) Bind ¶
func (this *OpenGLES2RenderTexture) Bind(unit uint32)
func (*OpenGLES2RenderTexture) BindIndex ¶
func (this *OpenGLES2RenderTexture) BindIndex(index int, unit uint32)
func (*OpenGLES2RenderTexture) Blit ¶
func (this *OpenGLES2RenderTexture) Blit(rtex gohome.RenderTexture)
func (*OpenGLES2RenderTexture) ChangeSize ¶
func (this *OpenGLES2RenderTexture) ChangeSize(width, height int)
func (*OpenGLES2RenderTexture) Create ¶
func (this *OpenGLES2RenderTexture) Create(name string, width, height, textures int, depthBuffer, multiSampled, shadowMap, cubeMap bool)
func (*OpenGLES2RenderTexture) GetData ¶
func (this *OpenGLES2RenderTexture) GetData() ([]byte, int, int)
func (*OpenGLES2RenderTexture) GetHeight ¶
func (this *OpenGLES2RenderTexture) GetHeight() int
func (*OpenGLES2RenderTexture) GetKeyColor ¶
func (this *OpenGLES2RenderTexture) GetKeyColor() color.Color
func (*OpenGLES2RenderTexture) GetModColor ¶
func (this *OpenGLES2RenderTexture) GetModColor() color.Color
func (*OpenGLES2RenderTexture) GetName ¶
func (this *OpenGLES2RenderTexture) GetName() string
func (*OpenGLES2RenderTexture) GetWidth ¶
func (this *OpenGLES2RenderTexture) GetWidth() int
func (*OpenGLES2RenderTexture) Load ¶
func (this *OpenGLES2RenderTexture) Load(data []byte, width, height int, shadowMap bool)
func (*OpenGLES2RenderTexture) LoadFromImage ¶
func (ogltex *OpenGLES2RenderTexture) LoadFromImage(img image.Image)
func (*OpenGLES2RenderTexture) SetAsTarget ¶
func (this *OpenGLES2RenderTexture) SetAsTarget()
func (*OpenGLES2RenderTexture) SetBorderColor ¶
func (this *OpenGLES2RenderTexture) SetBorderColor(col color.Color)
func (*OpenGLES2RenderTexture) SetBorderDepth ¶
func (this *OpenGLES2RenderTexture) SetBorderDepth(depth float32)
func (*OpenGLES2RenderTexture) SetFiltering ¶
func (this *OpenGLES2RenderTexture) SetFiltering(filtering int)
func (*OpenGLES2RenderTexture) SetKeyColor ¶
func (this *OpenGLES2RenderTexture) SetKeyColor(col color.Color)
func (*OpenGLES2RenderTexture) SetModColor ¶
func (this *OpenGLES2RenderTexture) SetModColor(col color.Color)
func (*OpenGLES2RenderTexture) SetWrapping ¶
func (this *OpenGLES2RenderTexture) SetWrapping(wrapping int)
func (*OpenGLES2RenderTexture) Terminate ¶
func (this *OpenGLES2RenderTexture) Terminate()
func (*OpenGLES2RenderTexture) Unbind ¶
func (this *OpenGLES2RenderTexture) Unbind(unit uint32)
func (*OpenGLES2RenderTexture) UnbindIndex ¶
func (this *OpenGLES2RenderTexture) UnbindIndex(index int, unit uint32)
func (*OpenGLES2RenderTexture) UnsetAsTarget ¶
func (this *OpenGLES2RenderTexture) UnsetAsTarget()
type OpenGLES2Renderer ¶
type OpenGLES2Renderer struct { CurrentTextureUnit uint32 // contains filtered or unexported fields }
func (*OpenGLES2Renderer) AfterInit ¶
func (this *OpenGLES2Renderer) AfterInit()
func (*OpenGLES2Renderer) AfterRender ¶
func (this *OpenGLES2Renderer) AfterRender()
func (*OpenGLES2Renderer) ClearScreen ¶
func (*OpenGLES2Renderer) ClearScreen(c color.Color)
func (*OpenGLES2Renderer) CreateCubeMap ¶
func (*OpenGLES2Renderer) CreateCubeMap(name string) gohome.CubeMap
func (*OpenGLES2Renderer) CreateInstancedMesh3D ¶
func (*OpenGLES2Renderer) CreateInstancedMesh3D(name string) gohome.InstancedMesh3D
func (*OpenGLES2Renderer) CreateMesh2D ¶
func (*OpenGLES2Renderer) CreateMesh2D(name string) gohome.Mesh2D
func (*OpenGLES2Renderer) CreateMesh3D ¶
func (*OpenGLES2Renderer) CreateMesh3D(name string) gohome.Mesh3D
func (*OpenGLES2Renderer) CreateRenderTexture ¶
func (*OpenGLES2Renderer) CreateRenderTexture(name string, width, height, textures int, depthBuffer, multiSampled, shadowMap, cubeMap bool) gohome.RenderTexture
func (*OpenGLES2Renderer) CreateShape2DInterface ¶
func (this *OpenGLES2Renderer) CreateShape2DInterface(name string) gohome.Shape2DInterface
func (*OpenGLES2Renderer) CreateShape3DInterface ¶
func (*OpenGLES2Renderer) CreateShape3DInterface(name string) gohome.Shape3DInterface
func (*OpenGLES2Renderer) CreateTexture ¶
func (*OpenGLES2Renderer) CreateTexture(name string, multiSampled bool) gohome.Texture
func (*OpenGLES2Renderer) DecrementTextureUnit ¶
func (this *OpenGLES2Renderer) DecrementTextureUnit(amount uint32)
func (*OpenGLES2Renderer) GetBackgroundColor ¶
func (this *OpenGLES2Renderer) GetBackgroundColor() color.Color
func (*OpenGLES2Renderer) GetMaxTextures ¶
func (this *OpenGLES2Renderer) GetMaxTextures() int
func (*OpenGLES2Renderer) GetName ¶
func (this *OpenGLES2Renderer) GetName() string
func (*OpenGLES2Renderer) GetNativeResolution ¶
func (this *OpenGLES2Renderer) GetNativeResolution() mgl32.Vec2
func (*OpenGLES2Renderer) GetVersioni ¶
func (this *OpenGLES2Renderer) GetVersioni() uint8
func (*OpenGLES2Renderer) GetViewport ¶
func (this *OpenGLES2Renderer) GetViewport() gohome.Viewport
func (*OpenGLES2Renderer) HasFunctionAvailable ¶
func (this *OpenGLES2Renderer) HasFunctionAvailable(function string) bool
func (*OpenGLES2Renderer) Init ¶
func (this *OpenGLES2Renderer) Init() error
func (*OpenGLES2Renderer) InstancedMesh3DFromLoadedMesh3D ¶
func (this *OpenGLES2Renderer) InstancedMesh3DFromLoadedMesh3D(mesh gohome.Mesh3D) gohome.InstancedMesh3D
func (*OpenGLES2Renderer) LoadShader ¶
func (this *OpenGLES2Renderer) LoadShader(name, vertex_contents, fragment_contents, geometry_contents, tesselletion_control_contents, eveluation_contents, compute_contents string) (gohome.Shader, error)
func (*OpenGLES2Renderer) NextTextureUnit ¶
func (this *OpenGLES2Renderer) NextTextureUnit() uint32
func (*OpenGLES2Renderer) OnResize ¶
func (this *OpenGLES2Renderer) OnResize(newWidth, newHeight int)
func (*OpenGLES2Renderer) PreRender ¶
func (this *OpenGLES2Renderer) PreRender()
func (*OpenGLES2Renderer) RenderBackBuffer ¶
func (this *OpenGLES2Renderer) RenderBackBuffer()
func (*OpenGLES2Renderer) SetBacckFaceCulling ¶
func (this *OpenGLES2Renderer) SetBacckFaceCulling(b bool)
func (*OpenGLES2Renderer) SetBackgroundColor ¶
func (this *OpenGLES2Renderer) SetBackgroundColor(bgColor color.Color)
func (*OpenGLES2Renderer) SetDepthTesting ¶
func (this *OpenGLES2Renderer) SetDepthTesting(b bool)
func (*OpenGLES2Renderer) SetNativeResolution ¶
func (this *OpenGLES2Renderer) SetNativeResolution(width, height int)
func (*OpenGLES2Renderer) SetViewport ¶
func (this *OpenGLES2Renderer) SetViewport(viewport gohome.Viewport)
func (*OpenGLES2Renderer) SetWireFrame ¶
func (this *OpenGLES2Renderer) SetWireFrame(b bool)
func (*OpenGLES2Renderer) Terminate ¶
func (this *OpenGLES2Renderer) Terminate()
type OpenGLES2Shader ¶
type OpenGLES2Shader struct {
// contains filtered or unexported fields
}
func CreateOpenGLES2Shader ¶
func CreateOpenGLES2Shader(name string) (*OpenGLES2Shader, error)
func (*OpenGLES2Shader) AddAttribute ¶
func (s *OpenGLES2Shader) AddAttribute(name string, location uint32)
func (*OpenGLES2Shader) AddShader ¶
func (s *OpenGLES2Shader) AddShader(shader_type uint8, src string) error
func (*OpenGLES2Shader) GetName ¶
func (s *OpenGLES2Shader) GetName() string
func (*OpenGLES2Shader) Link ¶
func (s *OpenGLES2Shader) Link() error
func (*OpenGLES2Shader) SetUniformB ¶
func (s *OpenGLES2Shader) SetUniformB(name string, value uint8)
func (*OpenGLES2Shader) SetUniformF ¶
func (s *OpenGLES2Shader) SetUniformF(name string, value float32)
func (*OpenGLES2Shader) SetUniformI ¶
func (s *OpenGLES2Shader) SetUniformI(name string, value int32)
func (*OpenGLES2Shader) SetUniformIV2 ¶
func (s *OpenGLES2Shader) SetUniformIV2(name string, value []int32)
func (*OpenGLES2Shader) SetUniformIV3 ¶
func (s *OpenGLES2Shader) SetUniformIV3(name string, value []int32)
func (*OpenGLES2Shader) SetUniformIV4 ¶
func (s *OpenGLES2Shader) SetUniformIV4(name string, value []int32)
func (*OpenGLES2Shader) SetUniformLights ¶
func (s *OpenGLES2Shader) SetUniformLights(lightCollectionIndex int)
func (*OpenGLES2Shader) SetUniformM2 ¶
func (s *OpenGLES2Shader) SetUniformM2(name string, value mgl32.Mat2)
func (*OpenGLES2Shader) SetUniformM3 ¶
func (s *OpenGLES2Shader) SetUniformM3(name string, value mgl32.Mat3)
func (*OpenGLES2Shader) SetUniformM4 ¶
func (s *OpenGLES2Shader) SetUniformM4(name string, value mgl32.Mat4)
func (*OpenGLES2Shader) SetUniformMaterial ¶
func (s *OpenGLES2Shader) SetUniformMaterial(mat gohome.Material)
func (*OpenGLES2Shader) SetUniformUI ¶
func (s *OpenGLES2Shader) SetUniformUI(name string, value uint32)
func (*OpenGLES2Shader) SetUniformV2 ¶
func (s *OpenGLES2Shader) SetUniformV2(name string, value mgl32.Vec2)
func (*OpenGLES2Shader) SetUniformV3 ¶
func (s *OpenGLES2Shader) SetUniformV3(name string, value mgl32.Vec3)
func (*OpenGLES2Shader) SetUniformV4 ¶
func (s *OpenGLES2Shader) SetUniformV4(name string, value mgl32.Vec4)
func (*OpenGLES2Shader) Setup ¶
func (s *OpenGLES2Shader) Setup() error
func (*OpenGLES2Shader) Terminate ¶
func (s *OpenGLES2Shader) Terminate()
func (*OpenGLES2Shader) Unuse ¶
func (s *OpenGLES2Shader) Unuse()
func (*OpenGLES2Shader) Use ¶
func (s *OpenGLES2Shader) Use()
type OpenGLES2Shape2DInterface ¶
type OpenGLES2Shape2DInterface struct { Name string // contains filtered or unexported fields }
func (*OpenGLES2Shape2DInterface) AddLines ¶
func (this *OpenGLES2Shape2DInterface) AddLines(lines []gohome.Line2D)
func (*OpenGLES2Shape2DInterface) AddPoints ¶
func (this *OpenGLES2Shape2DInterface) AddPoints(points []gohome.Shape2DVertex)
func (*OpenGLES2Shape2DInterface) AddTriangles ¶
func (this *OpenGLES2Shape2DInterface) AddTriangles(tris []gohome.Triangle2D)
func (*OpenGLES2Shape2DInterface) GetPoints ¶
func (this *OpenGLES2Shape2DInterface) GetPoints() []gohome.Shape2DVertex
func (*OpenGLES2Shape2DInterface) Init ¶
func (this *OpenGLES2Shape2DInterface) Init()
func (*OpenGLES2Shape2DInterface) Load ¶
func (this *OpenGLES2Shape2DInterface) Load()
func (*OpenGLES2Shape2DInterface) Render ¶
func (this *OpenGLES2Shape2DInterface) Render()
func (*OpenGLES2Shape2DInterface) SetDrawMode ¶
func (this *OpenGLES2Shape2DInterface) SetDrawMode(mode uint8)
func (*OpenGLES2Shape2DInterface) SetLineWidth ¶
func (this *OpenGLES2Shape2DInterface) SetLineWidth(width float32)
func (*OpenGLES2Shape2DInterface) SetPointSize ¶
func (this *OpenGLES2Shape2DInterface) SetPointSize(size float32)
func (*OpenGLES2Shape2DInterface) Terminate ¶
func (this *OpenGLES2Shape2DInterface) Terminate()
type OpenGLES2Shape3DInterface ¶
type OpenGLES2Shape3DInterface struct { Name string // contains filtered or unexported fields }
func (*OpenGLES2Shape3DInterface) AddPoints ¶
func (this *OpenGLES2Shape3DInterface) AddPoints(points []gohome.Shape3DVertex)
func (*OpenGLES2Shape3DInterface) GetPoints ¶
func (this *OpenGLES2Shape3DInterface) GetPoints() []gohome.Shape3DVertex
func (*OpenGLES2Shape3DInterface) Init ¶
func (this *OpenGLES2Shape3DInterface) Init()
func (*OpenGLES2Shape3DInterface) Load ¶
func (this *OpenGLES2Shape3DInterface) Load()
func (*OpenGLES2Shape3DInterface) Render ¶
func (this *OpenGLES2Shape3DInterface) Render()
func (*OpenGLES2Shape3DInterface) SetDrawMode ¶
func (this *OpenGLES2Shape3DInterface) SetDrawMode(drawMode uint8)
func (*OpenGLES2Shape3DInterface) SetLineWidth ¶
func (this *OpenGLES2Shape3DInterface) SetLineWidth(width float32)
func (*OpenGLES2Shape3DInterface) SetPointSize ¶
func (this *OpenGLES2Shape3DInterface) SetPointSize(size float32)
func (*OpenGLES2Shape3DInterface) Terminate ¶
func (this *OpenGLES2Shape3DInterface) Terminate()
type OpenGLES2Texture ¶
type OpenGLES2Texture struct {
// contains filtered or unexported fields
}
func CreateOpenGLES2Texture ¶
func CreateOpenGLES2Texture(name string) *OpenGLES2Texture
func (*OpenGLES2Texture) Bind ¶
func (ogltex *OpenGLES2Texture) Bind(unit uint32)
func (*OpenGLES2Texture) GetData ¶
func (ogltex *OpenGLES2Texture) GetData() (data []byte, width int, height int)
func (*OpenGLES2Texture) GetHeight ¶
func (ogltex *OpenGLES2Texture) GetHeight() int
func (*OpenGLES2Texture) GetKeyColor ¶
func (ogltex *OpenGLES2Texture) GetKeyColor() color.Color
func (*OpenGLES2Texture) GetModColor ¶
func (ogltex *OpenGLES2Texture) GetModColor() color.Color
func (*OpenGLES2Texture) GetName ¶
func (ogltex *OpenGLES2Texture) GetName() string
func (*OpenGLES2Texture) GetWidth ¶
func (ogltex *OpenGLES2Texture) GetWidth() int
func (*OpenGLES2Texture) Load ¶
func (ogltex *OpenGLES2Texture) Load(data []byte, width, height int, shadowMap bool)
func (*OpenGLES2Texture) LoadFromImage ¶
func (ogltex *OpenGLES2Texture) LoadFromImage(img image.Image)
func (*OpenGLES2Texture) SetBorderColor ¶
func (ogltex *OpenGLES2Texture) SetBorderColor(col color.Color)
func (*OpenGLES2Texture) SetBorderDepth ¶
func (ogltex *OpenGLES2Texture) SetBorderDepth(depth float32)
func (*OpenGLES2Texture) SetFiltering ¶
func (ogltex *OpenGLES2Texture) SetFiltering(filtering int)
func (*OpenGLES2Texture) SetKeyColor ¶
func (ogltex *OpenGLES2Texture) SetKeyColor(col color.Color)
func (*OpenGLES2Texture) SetModColor ¶
func (ogltex *OpenGLES2Texture) SetModColor(col color.Color)
func (*OpenGLES2Texture) SetWrapping ¶
func (ogltex *OpenGLES2Texture) SetWrapping(wrapping int)
func (*OpenGLES2Texture) Terminate ¶
func (ogltex *OpenGLES2Texture) Terminate()
func (*OpenGLES2Texture) Unbind ¶
func (ogltex *OpenGLES2Texture) Unbind(unit uint32)
type OpenGLError ¶
type OpenGLError struct {
// contains filtered or unexported fields
}
func (OpenGLError) Error ¶
func (oerr OpenGLError) Error() string
Click to show internal directories.
Click to hide internal directories.