From 3c4aa7ec1e9e5183cb98e0740492ef98e10175bd Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 27 Feb 2016 02:43:00 +0900 Subject: [PATCH] opengl: Unexport some interfaces --- internal/graphics/opengl/locationcache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/graphics/opengl/locationcache.go b/internal/graphics/opengl/locationcache.go index 884090617..9f0718fa8 100644 --- a/internal/graphics/opengl/locationcache.go +++ b/internal/graphics/opengl/locationcache.go @@ -19,13 +19,13 @@ package opengl var uniformLocationCache = map[programID]map[string]UniformLocation{} var attribLocationCache = map[programID]map[string]AttribLocation{} -type UniformLocationGetter interface { +type uniformLocationGetter interface { getUniformLocation(p Program, location string) UniformLocation } // TODO: Rename these functions not to be confusing -func GetUniformLocation(g UniformLocationGetter, p Program, location string) UniformLocation { +func GetUniformLocation(g uniformLocationGetter, p Program, location string) UniformLocation { id := p.id() if _, ok := uniformLocationCache[id]; !ok { uniformLocationCache[id] = map[string]UniformLocation{} @@ -38,11 +38,11 @@ func GetUniformLocation(g UniformLocationGetter, p Program, location string) Uni return l } -type AttribLocationGetter interface { +type attribLocationGetter interface { getAttribLocation(p Program, location string) AttribLocation } -func GetAttribLocation(g AttribLocationGetter, p Program, location string) AttribLocation { +func GetAttribLocation(g attribLocationGetter, p Program, location string) AttribLocation { id := p.id() if _, ok := attribLocationCache[id]; !ok { attribLocationCache[id] = map[string]AttribLocation{}