mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Removed some old debugging code that doesn't compile
This commit is contained in:
parent
fd27c18249
commit
9921fbba85
@ -1341,14 +1341,14 @@ draw_point(GeomPoint *geom, GeomContext *gc) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static BOOL bPrintedMsg=FALSE;
|
// static BOOL bPrintedMsg=FALSE;
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_size()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_size()!=1.0f)) {
|
||||||
bPrintedMsg=TRUE;
|
// bPrintedMsg=TRUE;
|
||||||
dxgsg7_cat.warning() << "D3D does not support drawing points of non-unit size, setting point size to 1.0f!\n";
|
// dxgsg7_cat.warning() << "D3D does not support drawing points of non-unit size, setting point size to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
nassertv(nPrims < D3DMAXNUMVERTICES );
|
nassertv(nPrims < D3DMAXNUMVERTICES );
|
||||||
|
|
||||||
@ -1473,17 +1473,17 @@ draw_line(GeomLine* geom, GeomContext *gc) {
|
|||||||
DO_PSTATS_STUFF(PStatTimer timer(_draw_primitive_pcollector));
|
DO_PSTATS_STUFF(PStatTimer timer(_draw_primitive_pcollector));
|
||||||
DO_PSTATS_STUFF(_vertices_other_pcollector.add_level(geom->get_num_vertices()));
|
DO_PSTATS_STUFF(_vertices_other_pcollector.add_level(geom->get_num_vertices()));
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static BOOL bPrintedMsg=FALSE;
|
// static BOOL bPrintedMsg=FALSE;
|
||||||
|
//
|
||||||
// note: need to implement approximation of non-1.0 width lines with quads
|
// // note: need to implement approximation of non-1.0 width lines with quads
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||||
bPrintedMsg=TRUE;
|
// bPrintedMsg=TRUE;
|
||||||
if(dxgsg7_cat.is_debug())
|
// if(dxgsg7_cat.is_debug())
|
||||||
dxgsg7_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
// dxgsg7_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
int nPrims = geom->get_num_prims();
|
int nPrims = geom->get_num_prims();
|
||||||
|
|
||||||
@ -1559,15 +1559,15 @@ draw_line(GeomLine* geom, GeomContext *gc) {
|
|||||||
void DXGraphicsStateGuardian7::
|
void DXGraphicsStateGuardian7::
|
||||||
draw_linestrip(GeomLinestrip* geom, GeomContext *gc) {
|
draw_linestrip(GeomLinestrip* geom, GeomContext *gc) {
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static BOOL bPrintedMsg=FALSE;
|
// static BOOL bPrintedMsg=FALSE;
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||||
bPrintedMsg=TRUE;
|
// bPrintedMsg=TRUE;
|
||||||
if(dxgsg7_cat.is_debug())
|
// if(dxgsg7_cat.is_debug())
|
||||||
dxgsg7_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
// dxgsg7_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
draw_linestrip_base(geom,gc,false);
|
draw_linestrip_base(geom,gc,false);
|
||||||
}
|
}
|
||||||
|
@ -1203,14 +1203,14 @@ draw_point(GeomPoint *geom, GeomContext *gc) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static bool bPrintedMsg=false;
|
// static bool bPrintedMsg=false;
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_size()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_size()!=1.0f)) {
|
||||||
bPrintedMsg=true;
|
// bPrintedMsg=true;
|
||||||
dxgsg8_cat.warning() << "D3D does not support drawing points of non-unit size, setting point size to 1.0f!\n";
|
// dxgsg8_cat.warning() << "D3D does not support drawing points of non-unit size, setting point size to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
nassertv(nPrims < PANDA_MAXNUMVERTS );
|
nassertv(nPrims < PANDA_MAXNUMVERTS );
|
||||||
|
|
||||||
@ -1266,17 +1266,17 @@ draw_line(GeomLine* geom, GeomContext *gc) {
|
|||||||
DO_PSTATS_STUFF(PStatTimer timer(_draw_primitive_pcollector));
|
DO_PSTATS_STUFF(PStatTimer timer(_draw_primitive_pcollector));
|
||||||
DO_PSTATS_STUFF(_vertices_other_pcollector.add_level(geom->get_num_vertices()));
|
DO_PSTATS_STUFF(_vertices_other_pcollector.add_level(geom->get_num_vertices()));
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static bool bPrintedMsg=false;
|
// static bool bPrintedMsg=false;
|
||||||
|
//
|
||||||
// note: need to implement approximation of non-1.0 width lines with quads
|
// // note: need to implement approximation of non-1.0 width lines with quads
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||||
bPrintedMsg=true;
|
// bPrintedMsg=true;
|
||||||
if(dxgsg8_cat.is_debug())
|
// if(dxgsg8_cat.is_debug())
|
||||||
dxgsg8_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
// dxgsg8_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
int nPrims = geom->get_num_prims();
|
int nPrims = geom->get_num_prims();
|
||||||
|
|
||||||
@ -1352,14 +1352,14 @@ draw_line(GeomLine* geom, GeomContext *gc) {
|
|||||||
void DXGraphicsStateGuardian8::
|
void DXGraphicsStateGuardian8::
|
||||||
draw_linestrip(GeomLinestrip* geom, GeomContext *gc) {
|
draw_linestrip(GeomLinestrip* geom, GeomContext *gc) {
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static BOOL bPrintedMsg=false;
|
// static BOOL bPrintedMsg=false;
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||||
bPrintedMsg=true;
|
// bPrintedMsg=true;
|
||||||
dxgsg8_cat.warning() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
// dxgsg8_cat.warning() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
draw_linestrip_base(geom,gc,false);
|
draw_linestrip_base(geom,gc,false);
|
||||||
}
|
}
|
||||||
|
@ -1185,14 +1185,14 @@ draw_point(GeomPoint *geom, GeomContext *gc) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static bool bPrintedMsg=false;
|
// static bool bPrintedMsg=false;
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_size()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_size()!=1.0f)) {
|
||||||
bPrintedMsg=true;
|
// bPrintedMsg=true;
|
||||||
dxgsg9_cat.warning() << "D3D does not support drawing points of non-unit size, setting point size to 1.0f!\n";
|
// dxgsg9_cat.warning() << "D3D does not support drawing points of non-unit size, setting point size to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
nassertv(nPrims < PANDA_MAXNUMVERTS );
|
nassertv(nPrims < PANDA_MAXNUMVERTS );
|
||||||
|
|
||||||
@ -1247,17 +1247,17 @@ draw_line(GeomLine* geom, GeomContext *gc) {
|
|||||||
DO_PSTATS_STUFF(PStatTimer timer(_draw_primitive_pcollector));
|
DO_PSTATS_STUFF(PStatTimer timer(_draw_primitive_pcollector));
|
||||||
DO_PSTATS_STUFF(_vertices_other_pcollector.add_level(geom->get_num_vertices()));
|
DO_PSTATS_STUFF(_vertices_other_pcollector.add_level(geom->get_num_vertices()));
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static bool bPrintedMsg=false;
|
// static bool bPrintedMsg=false;
|
||||||
|
//
|
||||||
// note: need to implement approximation of non-1.0 width lines with quads
|
// // note: need to implement approximation of non-1.0 width lines with quads
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||||
bPrintedMsg=true;
|
// bPrintedMsg=true;
|
||||||
if(dxgsg9_cat.is_debug())
|
// if(dxgsg9_cat.is_debug())
|
||||||
dxgsg9_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
// dxgsg9_cat.debug() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
int nPrims = geom->get_num_prims();
|
int nPrims = geom->get_num_prims();
|
||||||
|
|
||||||
@ -1333,14 +1333,14 @@ draw_line(GeomLine* geom, GeomContext *gc) {
|
|||||||
void DXGraphicsStateGuardian9::
|
void DXGraphicsStateGuardian9::
|
||||||
draw_linestrip(GeomLinestrip* geom, GeomContext *gc) {
|
draw_linestrip(GeomLinestrip* geom, GeomContext *gc) {
|
||||||
|
|
||||||
#ifdef _DEBUG
|
//#ifdef _DEBUG
|
||||||
static BOOL bPrintedMsg=false;
|
// static BOOL bPrintedMsg=false;
|
||||||
|
//
|
||||||
if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
// if (!bPrintedMsg && (geom->get_width()!=1.0f)) {
|
||||||
bPrintedMsg=true;
|
// bPrintedMsg=true;
|
||||||
dxgsg9_cat.warning() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
// dxgsg9_cat.warning() << "DX does not support drawing lines with a non-1.0f pixel width, setting width to 1.0f!\n";
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
draw_linestrip_base(geom,gc,false);
|
draw_linestrip_base(geom,gc,false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user