Remove a few unused and obsolete C++ test files

This commit is contained in:
rdb 2018-08-03 21:05:12 +02:00
parent 668a093c26
commit 7e290b221b
4 changed files with 0 additions and 176 deletions

View File

@ -760,7 +760,6 @@
<File RelativePath="..\panda\src\gobj\bufferContext.cxx"></File>
<File RelativePath="..\panda\src\gobj\textureContext.I"></File>
<File RelativePath="..\panda\src\gobj\internalName.h"></File>
<File RelativePath="..\panda\src\gobj\test_gobj.cxx"></File>
<File RelativePath="..\panda\src\gobj\geomTristrips.h"></File>
<File RelativePath="..\panda\src\gobj\textureContext.h"></File>
<File RelativePath="..\panda\src\gobj\config_gobj.cxx"></File>
@ -1114,7 +1113,6 @@
<File RelativePath="..\panda\src\collide\collisionHandlerGravity.I"></File>
<File RelativePath="..\panda\src\collide\collisionLine.h"></File>
<File RelativePath="..\panda\src\collide\collisionHandlerPhysical.I"></File>
<File RelativePath="..\panda\src\collide\test_collide.cxx"></File>
<File RelativePath="..\panda\src\collide\collisionFloorMesh.cxx"></File>
<File RelativePath="..\panda\src\collide\collisionPolygon.h"></File>
<File RelativePath="..\panda\src\collide\collisionGeom.cxx"></File>
@ -3705,7 +3703,6 @@
<File RelativePath="..\panda\src\testbed\test_map.cxx"></File>
<File RelativePath="..\panda\src\testbed\pgrid.cxx"></File>
<File RelativePath="..\panda\src\testbed\pview.cxx"></File>
<File RelativePath="..\panda\src\testbed\text_test.cxx"></File>
</Filter>
<Filter Name="cull">
<File RelativePath="..\panda\src\cull\config_cull.cxx"></File>

View File

@ -1,70 +0,0 @@
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file test_collide.cxx
* @author drose
* @date 2000-04-24
*/
#include "collisionTraverser.h"
#include "collisionNode.h"
#include "collisionSphere.h"
#include "collisionPlane.h"
#include "collisionHandlerPusher.h"
#include "namedNode.h"
#include "pt_NamedNode.h"
#include "pointerTo.h"
#include "transformTransition.h"
#include "luse.h"
#include "get_rel_pos.h"
#include "renderRelation.h"
int
main(int argc, char *argv[]) {
PT_NamedNode r = new NamedNode("r");
PT_NamedNode a = new NamedNode("a");
PT_NamedNode b = new NamedNode("b");
PT(CollisionNode) aa = new CollisionNode("aa");
PT(CollisionNode) ab = new CollisionNode("ab");
PT(CollisionNode) ba = new CollisionNode("ba");
RenderRelation *r_a = new RenderRelation(r, a);
RenderRelation *r_b = new RenderRelation(r, b);
RenderRelation *a_aa = new RenderRelation(a, aa);
RenderRelation *a_ab = new RenderRelation(a, ab);
RenderRelation *b_ba = new RenderRelation(b, ba);
CollisionSphere *aa1 = new CollisionSphere(LPoint3f(0, 0, 0), 1);
aa->add_solid(aa1);
a_aa->set_transition(new TransformTransition(LMatrix4f::translate_mat(0, -5, 0)));
CollisionSphere *ab1 = new CollisionSphere(LPoint3f(0, 2, 0), 1.5);
ab->add_solid(ab1);
Planef plane(LVector3f(0, 1, 0), LPoint3f(0, 0, 0));
CollisionPlane *ba1 = new CollisionPlane(plane);
ba->add_solid(ba1);
CollisionTraverser ct;
PT(CollisionHandlerPusher) chp = new CollisionHandlerPusher;
chp->add_collider(aa, a_aa);
ct.add_collider(aa, chp);
ct.traverse(r);
nout << "\nFrame 2:\n\n";
ct.traverse(r);
return (0);
}

View File

@ -1,25 +0,0 @@
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file test_gobj.cxx
* @author shochet
* @date 2000-02-02
*/
#include "geom.h"
#include "perspectiveProjection.h"
int main() {
nout << "running test_gobj" << std::endl;
PT(GeomTri) triangle = new GeomTri;
Frustumf frust;
PT(PerspectiveProjection) proj = new PerspectiveProjection(frust);
LMatrix4f mat = proj->get_projection_mat();
nout << "default proj matrix: " << mat;
return 0;
}

View File

@ -1,78 +0,0 @@
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file text_test.cxx
*/
#include "eventHandler.h"
#include "chancfg.h"
#include "textNode.h"
#include "eggLoader.h"
#include "pnotify.h"
#include "pt_NamedNode.h"
extern PT_NamedNode render;
extern PT_NamedNode egg_root;
extern EventHandler event_handler;
extern int framework_main(int argc, char *argv[]);
extern void (*define_keys)(EventHandler&);
PT(TextNode) text_node;
char *textStr;
void event_p(CPT_Event) {
text_node->set_text("I'm a woo woo woo!");
nout << "text is " << text_node->get_width() << " by "
<< text_node->get_height() << "\n";
}
void event_s(CPT_Event) {
text_node->set_wordwrap(5.0);
nout << "text is " << text_node->get_width() << " by "
<< text_node->get_height() << "\n";
}
void text_keys(EventHandler& eh) {
eh.add_hook("p", event_p);
eh.add_hook("s", event_s);
text_node = new TextNode("text_node");
PT_NamedNode font = loader.load_sync("cmr12");
text_node->set_font(font.p());
text_node->set_wordwrap(20.0);
text_node->set_card_as_margin(0.25, 0.25, 0.25, 0.25);
PT(Texture) tex = new Texture;
tex->set_name("genericButton.rgb");
tex->set_minfilter(SamplerState::FT_linear);
tex->set_magfilter(SamplerState::FT_linear);
tex->read("/beta/toons/textures/smGreyButtonUp.rgb");
text_node->set_card_texture( tex );
text_node->set_card_border(0.1, 0.1);
text_node->set_text( textStr );
text_node->set_text_color( 0.0, 0.0, 0.0, 1.0 );
if (text_node->has_card_texture())
nout << "I've got a texture!" << "\n";
else
nout << "I don't have a texture..." << "\n";
nout << "text is " << text_node->get_width() << " by "
<< text_node->get_height() << "\n";
new RenderRelation(egg_root, text_node);
}
int main(int argc, char *argv[]) {
define_keys = &text_keys;
if (argc > 1)
textStr = argv[1];
else
textStr = argv[0];
return framework_main(argc, argv);
}