Beispiel #1
0
Plane<real>::Plane( real sizeZ, real sizeX )
	: mSizeZ( sizeZ )
	, mSizeX( sizeX )
	, mGeometryBuffer( NULL )
{
	InvalidateGeometry();
}
Beispiel #2
0
void Sphere<real>::SetSizes( real radius, uint latitudeSubdivisions, uint longitudeSubdivisions )
{
	mRadius = radius;
	mLatitudeSubdivisions = latitudeSubdivisions;
	mLongitudeSubdivisions = longitudeSubdivisions;

	InvalidateGeometry();
}
Beispiel #3
0
Sphere<real>::Sphere( real radius, uint latitudeSubdivisions, uint longitudeSubdivisions )
	: mRadius( radius )
	, mLatitudeSubdivisions( latitudeSubdivisions )
	, mLongitudeSubdivisions( longitudeSubdivisions )
	, mGeometryBuffer( NULL )
{
	InvalidateGeometry();
}
Beispiel #4
0
bool TriMesh<real>::Load( const std::string& filename )
{
	Clear();

	TriMeshImporter<real> importer;
	bool result = importer.Import( filename, *this );

	InvalidateGeometry();

	return result;
}
Beispiel #5
0
void rPrimitiveGrid::SetColumns( int columns){
	m_columns = std::max(columns, 1);
	InvalidateGeometry();
}
Beispiel #6
0
void rPrimitiveGrid::SetRows(int rows){
	m_rows = std::max(rows, 1);
	InvalidateGeometry();
}
void rPrimitiveSphere::SetRings(int rings){
	m_rings = rings;
	InvalidateGeometry();
}
void rPrimitiveCone::SetHeight(float height) {
    m_height = height;
    InvalidateGeometry();
}
Beispiel #9
0
void TriMesh<real>::HasNormals( bool hasNormals )
{
	mHasNormals = hasNormals;
	InvalidateGeometry();
}
Beispiel #10
0
void TriMesh<real>::HasColors( bool hasColors )
{
	mHasColors = hasColors;
	InvalidateGeometry();
}
Beispiel #11
0
void TriMesh<real>::HasTexCoords( bool hasTexCoords )
{
	mHasTexCoords = hasTexCoords;
	InvalidateGeometry();
}
Beispiel #12
0
void rPrimitive::OnLoad(){
	rActor3::OnLoad();
	InvalidateGeometry();
}
void rPrimitiveSphere::SetSectors(int sectors){
	m_sectors = sectors;
	InvalidateGeometry();
}
Beispiel #14
0
void Plane<real>::SetSizes( real sizeZ, real sizeX )
{
	mSizeZ = sizeZ;
	mSizeX = sizeX;
	InvalidateGeometry();
}
Beispiel #15
0
void rPrimitiveGrid::SetWidth(float width){
	m_width = width;
	InvalidateGeometry();
}
Beispiel #16
0
void rPrimitiveCone::SetRadius(float radius) {
    m_radius = radius;
    InvalidateGeometry();
}
Beispiel #17
0
void rPrimitiveGrid::SetDepth(float depth){
	m_depth = depth;
	InvalidateGeometry();
}
Beispiel #18
0
void rPrimitiveCone::SetSegmentCount(int segmentCount) {
    m_segmentCount = segmentCount;
    InvalidateGeometry();
}
void rPrimitiveSphere::SetRadius(float radius){
	m_radius = radius;
	RecalculateBoundingVolume();
	InvalidateGeometry();
}