Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:handle

69     unsigned int handle = 1;
71 while (mBufferMap.find(handle) != mBufferMap.end())
73 handle++;
76 mBufferMap[handle] = NULL;
78 return handle;
84 unsigned int handle = 1;
86 while (mShaderMap.find(handle) != mShaderMap.end() || mProgramMap.find(handle) != mProgramMap.end()) // Shared name space
88 handle++;
93 mShaderMap[handle] = new VertexShader(this, handle);
97 mShaderMap[handle] = new FragmentShader(this, handle);
101 return handle;
107 unsigned int handle = 1;
109 while (mProgramMap.find(handle) != mProgramMap.end() || mShaderMap.find(handle) != mShaderMap.end()) // Shared name space
111 handle++;
114 mProgramMap[handle] = new Program(this, handle);
116 return handle;
122 unsigned int handle = 1;
124 while (mTextureMap.find(handle) != mTextureMap.end())
126 handle++;
129 mTextureMap[handle] = NULL;
131 return handle;
137 unsigned int handle = 1;
139 while (mRenderbufferMap.find(handle) != mRenderbufferMap.end())
141 handle++;
144 mRenderbufferMap[handle] = NULL;
146 return handle;
218 Buffer *ResourceManager::getBuffer(unsigned int handle)
220 BufferMap::iterator buffer = mBufferMap.find(handle);
232 Shader *ResourceManager::getShader(unsigned int handle)
234 ShaderMap::iterator shader = mShaderMap.find(handle);
246 Texture *ResourceManager::getTexture(unsigned int handle)
248 if (handle == 0) return NULL;
250 TextureMap::iterator texture = mTextureMap.find(handle);
262 Program *ResourceManager::getProgram(unsigned int handle)
264 ProgramMap::iterator program = mProgramMap.find(handle);
276 Renderbuffer *ResourceManager::getRenderbuffer(unsigned int handle)
278 RenderbufferMap::iterator renderbuffer = mRenderbufferMap.find(handle);
290 void ResourceManager::setRenderbuffer(GLuint handle, Renderbuffer *buffer)
292 mRenderbufferMap[handle] = buffer;