re: patches / CVS
I guess patchfile is ok. Here’s a patchfile for src/glstuff/glGraphicsStateGuardian_src.cxx. This is necessary for Panda to build with pstats turned off.
*** glGraphicsStateGuardian_src.cxx 30 Apr 2005 00:09:08 -0000 1.121
— glGraphicsStateGuardian_src.cxx 2 May 2005 02:15:10 -0000
*** 3005,3011 ****
— 3005,3013 ----
}
if (gvbc->was_modified()) {
-
#ifdef DO_PSTATS PStatTimer timer(_load_vertex_buffer_pcollector);
-
#endif // DO_PSTATS int num_bytes = gvbc->get_data()->get_data_size_bytes(); if (GLCAT.is_spam()) { GLCAT.spam()
*** 3148,3154 ****
— 3150,3158 ----
}
if (gibc->was_modified()) {
-
#ifdef DO_PSTATS PStatTimer timer(_load_index_buffer_pcollector);
-
#endif int num_bytes = gibc->get_data()->get_data_size_bytes(); if (GLCAT.is_spam()) { GLCAT.spam()
*** 4759,4765 ****
— 4763,4771 ----
// Unsupported target (e.g. 3-d texturing on GL 1.1).
return false;
}
-
#ifdef DO_PSTATS
PStatTimer timer(_load_texture_pcollector); -
#endif
if (uses_mipmaps) {
#ifndef NDEBUG
The absolute simplest answer is to do your development on Linux, if that’s an option for you.
Yes, its not an option at all I just have access to Windows boxes.
In your new classes, you won’t use the EXPCL_PANDA prefix on the class definition, since that is used to tell the compiler which DLL the class is compiled into. Just omit the EXPCL_ prefix altogether it if is compiled directly in pview.
Yes, that works great!
Ermmm, dont suppose… any chance of describing the various functions I will need to over-ride in my new node, in order to render things correctly and in a reasonably optimized fashion?
It looks like the vertices and primitives are being created in cull_callback?
How does Panda know what should be rendered? What information does it need to know generally from the node, and how do I provide this information? in what format?
Hugh