|
|
@@ -177,6 +177,17 @@ dequeue_texture(Texture *tex) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: PreparedGraphicsObjects::is_texture_prepared
|
|
|
+// Access: Public
|
|
|
+// Description: Returns true if the texture has been prepared on
|
|
|
+// this GSG, false otherwise.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+bool PreparedGraphicsObjects::
|
|
|
+is_texture_prepared(const Texture *tex) const {
|
|
|
+ return tex->is_prepared((PreparedGraphicsObjects *)this);
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PreparedGraphicsObjects::release_texture
|
|
|
// Access: Public
|
|
|
@@ -354,6 +365,17 @@ dequeue_geom(Geom *geom) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: PreparedGraphicsObjects::is_geom_prepared
|
|
|
+// Access: Public
|
|
|
+// Description: Returns true if the vertex buffer has been prepared on
|
|
|
+// this GSG, false otherwise.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+bool PreparedGraphicsObjects::
|
|
|
+is_geom_prepared(const Geom *geom) const {
|
|
|
+ return geom->is_prepared((PreparedGraphicsObjects *)this);
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PreparedGraphicsObjects::release_geom
|
|
|
// Access: Public
|
|
|
@@ -531,6 +553,17 @@ dequeue_shader(ShaderExpansion *se) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: PreparedGraphicsObjects::is_shader_prepared
|
|
|
+// Access: Public
|
|
|
+// Description: Returns true if the shader has been prepared on
|
|
|
+// this GSG, false otherwise.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+bool PreparedGraphicsObjects::
|
|
|
+is_shader_prepared(const ShaderExpansion *shader) const {
|
|
|
+ return shader->is_prepared((PreparedGraphicsObjects *)this);
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PreparedGraphicsObjects::release_shader
|
|
|
// Access: Public
|
|
|
@@ -708,6 +741,17 @@ dequeue_vertex_buffer(GeomVertexArrayData *data) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: PreparedGraphicsObjects::is_vertex_buffer_prepared
|
|
|
+// Access: Public
|
|
|
+// Description: Returns true if the vertex buffer has been prepared on
|
|
|
+// this GSG, false otherwise.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+bool PreparedGraphicsObjects::
|
|
|
+is_vertex_buffer_prepared(const GeomVertexArrayData *data) const {
|
|
|
+ return data->is_prepared((PreparedGraphicsObjects *)this);
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PreparedGraphicsObjects::release_vertex_buffer
|
|
|
// Access: Public
|
|
|
@@ -885,6 +929,17 @@ dequeue_index_buffer(GeomPrimitive *data) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+// Function: PreparedGraphicsObjects::is_index_buffer_prepared
|
|
|
+// Access: Public
|
|
|
+// Description: Returns true if the index buffer has been prepared on
|
|
|
+// this GSG, false otherwise.
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
+bool PreparedGraphicsObjects::
|
|
|
+is_index_buffer_prepared(const GeomPrimitive *data) const {
|
|
|
+ return data->is_prepared((PreparedGraphicsObjects *)this);
|
|
|
+}
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: PreparedGraphicsObjects::release_index_buffer
|
|
|
// Access: Public
|