Lines Matching refs:id
109 GLuint id; member
142 bool hasRbo(GLuint id) const { in hasRbo()
143 return nullptr != internalInfo_const()->component.get_const(id); in hasRbo()
146 RboProps* get(GLuint id) { in get()
147 auto rboPropPtr = internalInfo()->component.get(id); in get()
153 std::shared_ptr<RboProps> get_or_add_shared_ptr(GLuint id) { in get_or_add_shared_ptr()
154 auto rboPropPtr = internalInfo()->component.get(id); in get_or_add_shared_ptr()
156 addFresh(id); in get_or_add_shared_ptr()
157 rboPropPtr = internalInfo()->component.get(id); in get_or_add_shared_ptr()
161 std::shared_ptr<RboProps> get_shared_ptr(GLuint id) { in get_shared_ptr()
162 auto rboPropPtr = internalInfo()->component.get(id); in get_shared_ptr()
163 if (!internalInfo()->component.get(id)) { in get_shared_ptr()
168 const RboProps* get_const(GLuint id) { in get_const()
169 auto rboPropPtr = internalInfo()->component.get_const(id); in get_const()
175 void addFresh(GLuint id) { in addFresh()
183 props->id = id; in addFresh()
184 internalInfo()->component.add(id, std::move(props)); in addFresh()
186 std::shared_ptr<RboProps> bind(GLuint id) { in bind()
187 auto res = get_shared_ptr(id); in bind()
189 addFresh(id); in bind()
190 res = get_shared_ptr(id); in bind()
195 void remove(GLuint id) { in remove()
196 if (id == 0) { in remove()
199 internalInfo()->component.remove(id); in remove()
214 bool samplerExists(GLuint id) const { in samplerExists()
215 const SamplerProps* info = internalInfo_const()->component.get_const(id); in samplerExists()
220 SamplerProps* get(GLuint id) { in get()
221 return internalInfo()->component.get(id); in get()
223 const SamplerProps* get_const(GLuint id) { in get_const()
224 return internalInfo_const()->component.get_const(id); in get_const()
226 void addFresh(GLuint id) { in addFresh()
229 internalInfo()->component.add(id, props); in addFresh()
231 SamplerProps* bind(GLuint id) { in bind()
232 if (!samplerExists(id)) return 0; in bind()
233 ref(id); in bind()
234 SamplerProps* res = get(id); in bind()
237 void ref(GLuint id) { in ref()
238 SamplerProps* props = get(id); in ref()
242 bool unref(GLuint id) { in unref()
243 SamplerProps* props = get(id); in unref()