|
Oolite
|
#include <OOMesh.h>
Class Methods | |
| (instancetype) | + meshWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget: |
| (instancetype) | + meshWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable: |
| (OOMaterial *) | + placeholderMaterial |
| (static NSString *) | + NormalModeDescription [implementation] |
| (static float) | + FaceArea [implementation] |
| (static float) | + FaceAreaCorrect [implementation] |
Private Attributes | |
| uint8_t | _normalMode: 2 |
| uint8_t | brokenInRender: 1 |
| uint8_t | listsReady: 1 |
| OOMeshMaterialCount | materialCount |
| OOMeshVertexCount | vertexCount |
| OOMeshFaceCount | faceCount |
| NSString * | baseFile |
| NSString * | baseFileOctreeCacheRef |
| BOOL | _cacheWriteable |
| Vector * | _vertices |
| Vector * | _normals |
| Vector * | _tangents |
| OOMeshFace * | _faces |
| OOMeshDisplayLists | _displayLists |
| NSRange | triangle_range [kOOMeshMaxMaterials] |
| NSString * | materialKeys [kOOMeshMaxMaterials] |
| OOMaterial * | materials [kOOMeshMaxMaterials] |
| GLuint | displayList0 |
| GLfloat | collisionRadius |
| GLfloat | maxDrawDistance |
| BoundingBox | boundingBox |
| Octree * | octree |
| NSMutableDictionary * | _retainedObjects |
| NSDictionary * | _materialDict |
| NSDictionary * | _shadersDict |
| NSString * | _cacheKey |
| NSDictionary * | _shaderMacros |
| id | _shaderBindingTarget |
| Vector | _lastPosition |
| OOMatrix | _lastRotMatrix |
| BoundingBox | _lastBoundingBox |
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1941 of file OOMesh.m.
Referenced by OOMesh(Private)::allocateFaceBuffersWithCount:, OOMesh(Private)::allocateNormalBuffersWithCount:, OOMesh(Private)::allocateVertexArrayBuffersWithCount:, and OOMesh(Private)::allocateVertexBuffersWithCount:.
|
implementation |
Provided by category OOMesh(Private).
|
implementation |
Provided by category OOMesh(Private).
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1975 of file OOMesh.m.
|
implementation |
Provided by category OOMesh(Private).
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1786 of file OOMesh.m.
Referenced by OOMesh(Private)::initWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, OOMesh(Private)::loadData:scaleFactor:, and OOMesh(Private)::rescaleByFactor:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1580 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1634 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1488 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
|
implementation |
Definition at line 345 of file OOMesh.m.
References mutableCopyWithZone:.
|
implementation |
Definition at line 294 of file OOMesh.m.
References _cacheKey, _materialDict, _retainedObjects, _shaderBindingTarget, _shaderMacros, _shadersDict, baseFile, baseFileOctreeCacheRef, dealloc, deleteDisplayLists, DESTROY, kOOMeshMaxMaterials, materialKeys, materials, octree, OOGraphicsResetManager::sharedManager, and OOGraphicsResetManager::unregisterClient:.
Referenced by dealloc.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 913 of file OOMesh.m.
Referenced by dealloc, and OOMesh(Private)::resetGraphicsState.
|
implementation |
Definition at line 340 of file OOMesh.m.
References collisionRadius, descriptionComponents, faceCount, modelName, and vertexCount.
Referenced by descriptionComponents.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1571 of file OOMesh.m.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1619 of file OOMesh.m.
| - (BoundingBox) findBoundingBoxRelativeToPosition: | (Vector) | opv | |
| ri: | (Vector) | ri | |
| rj: | (Vector) | rj | |
| rk: | (Vector) | rk | |
| selfPosition: | (Vector) | position | |
| si: | (Vector) | si | |
| sj: | (Vector) | sj | |
| sk: | (Vector) | sk |
Definition at line 664 of file OOMesh.m.
References _vertices, bounding_box_add_vector(), bounding_box_reset_to_vector(), dot_product(), EXPECT_NOT, vector_subtract(), vertexCount, Vector::x, Vector::y, and Vector::z.
Referenced by ShipEntity::findBoundingBoxRelativeToPosition:i:j:k:.
| - (BoundingBox) findSubentityBoundingBoxWithPosition: | (Vector) | position | |
| rotMatrix: | (OOMatrix) | rotMatrix |
Definition at line 709 of file OOMesh.m.
References _lastBoundingBox, _lastPosition, _lastRotMatrix, _vertices, bounding_box_add_vector(), bounding_box_reset_to_vector(), OOMatrixEqual(), OOVectorMultiplyMatrix(), vector_add(), vector_equal(), and vertexCount.
Referenced by ShipEntity::findSubentityBoundingBox.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1534 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1681 of file OOMesh.m.
Referenced by OOMesh(Private)::setUpVertexArrays.
|
implementation |
Reimplemented from OODrawable.
Definition at line 575 of file OOMesh.m.
References hasOpaqueParts.
Referenced by hasOpaqueParts.
|
implementation |
Definition at line 274 of file OOMesh.m.
References _cacheWriteable, _lastBoundingBox, _lastPosition, _lastRotMatrix, baseFile, baseFileOctreeCacheRef, init, kZeroBoundingBox, kZeroMatrix, kZeroVector, and nil.
Referenced by init.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 817 of file OOMesh.m.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1080 of file OOMesh.m.
| - (NSDictionary *) materials |
| - (OOMesh *) meshRescaledBy: | (GLfloat) | scaleFactor |
Definition at line 739 of file OOMesh.m.
Referenced by OOVisualEffectEntity::rescaleBy:.
| + (instancetype) meshWithName: | (NSString*) | name | |
| cacheKey: | (NSString*) | cacheKey | |
| materialDictionary: | (NSDictionary*) | materialDict | |
| shadersDictionary: | (NSDictionary*) | shadersDict | |
| smooth: | (BOOL) | smooth | |
| shaderMacros: | (NSDictionary*) | macros | |
| shaderBindingTarget: | (id<OOWeakReferenceSupport>) | object |
Definition at line 223 of file OOMesh.m.
Referenced by OOVisualEffectEntity::setUpVisualEffectFromDictionary:, ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), VisualEffectSetMaterialsInternal(), and VisualEffectSetMaterialsInternal().
| + (instancetype) meshWithName: | (NSString*) | name | |
| cacheKey: | (NSString*) | cacheKey | |
| materialDictionary: | (NSDictionary*) | materialDict | |
| shadersDictionary: | (NSDictionary*) | shadersDict | |
| smooth: | (BOOL) | smooth | |
| shaderMacros: | (NSDictionary*) | macros | |
| shaderBindingTarget: | (id<OOWeakReferenceSupport>) | object | |
| scaleFactor: | (float) | factor | |
| cacheWriteable: | (BOOL) | cacheWriteable |
Definition at line 242 of file OOMesh.m.
Referenced by ShipEntity(Private)::rescaleBy:writeToCache:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 930 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
| - (NSString *) modelName |
Definition at line 353 of file OOMesh.m.
References baseFile, and modelName.
Referenced by descriptionComponents, modelName, and PlayerEntity::setUpTrumbles.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 881 of file OOMesh.m.
Referenced by copyWithZone:.
|
implementation |
Definition at line 326 of file OOMesh.m.
References kNormalModeExplicit, kNormalModePerFace, and kNormalModeSmooth.
|
implementation |
Definition at line 591 of file OOMesh.m.
References baseFile, bounding_box_get_dimensions(), boundingBox, kBaseOctreeDepth, kMaxOctreeDepth, kOctreeSizeThreshold, kOctreeSmallSizeThreshold, kSmallOctreeDepth, octreeDepth, and OOLog.
Referenced by octreeDepth.
| + (OOMaterial *) placeholderMaterial |
Definition at line 263 of file OOMesh.m.
References ResourceManager::materialDefaults, nil, and placeholderMaterial.
Referenced by placeholderMaterial, and rebindMaterials.
| - (void) rebindMaterials |
Definition at line 530 of file OOMesh.m.
References materialCount, materialKeys, materials, OOMaterial::materialWithName:cacheKey:materialDictionary:shadersDictionary:macros:bindingTarget:forSmoothedMesh:, nil, placeholderMaterial, and rebindMaterials.
Referenced by OOMesh(Private)::initWithName:cacheKey:materialDictionary:shadersDictionary:smooth:shaderMacros:shaderBindingTarget:scaleFactor:cacheWriteable:, rebindMaterials, OOMesh(Private)::resetGraphicsState, and ShipEntity::setEntityPersonalityInt:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1986 of file OOMesh.m.
Referenced by OOMesh(Private)::loadData:scaleFactor:.
|
implementation |
Reimplemented from OODrawable.
Definition at line 368 of file OOMesh.m.
References _displayLists, OOMaterial::apply, OOMaterial::applyNone, brokenInRender, count, DEBUG_DRAW_NORMALS, DEBUG_OCTREE_DRAW, displayList0, OOMaterial::ensureFinishedLoading, gDebugFlags, kOOLogException, listsReady, materialCount, octree, OO_ENTER_OPENGL, OOCheckOpenGLErrors(), OOGL, OOLog, OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_OPAQUE, renderOpaqueParts, triangle_range, and OOMaterial::wantsNormalsAsTextureCoordinates.
Referenced by renderOpaqueParts.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1827 of file OOMesh.m.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 923 of file OOMesh.m.
|
implementation |
Reimplemented from OODrawable.
Definition at line 746 of file OOMesh.m.
References kOOMeshMaxMaterials, and OOMaterial::setBindingTarget:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 992 of file OOMesh.m.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1907 of file OOMesh.m.
Referenced by OOMesh(Private)::allocateBytesWithSize:count:key:, and OOMesh(Private)::setModelFromModelData:name:.
|
implementation |
Provided by category OOMesh(Private).
Definition at line 1706 of file OOMesh.m.
| - (NSDictionary *) shaders |
Definition at line 570 of file OOMesh.m.
References _shadersDict, and shaders.
Referenced by materials, shaders, ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), VisualEffectGetShaders(), VisualEffectGetShaders(), VisualEffectSetMaterialsInternal(), and VisualEffectSetMaterialsInternal().
|
implementation |
Definition at line 808 of file OOMesh.m.
References _faces, _normals, _tangents, boundingBox, and suppressClangStuff.
Referenced by suppressClangStuff.
| - (size_t) vertexCount |
References vertexCount.
|
private |
Definition at line 102 of file OOMesh.h.
Referenced by renderOpaqueParts.
|
private |
Definition at line 99 of file OOMesh.h.
Referenced by suppressClangStuff.
|
private |
Definition at line 125 of file OOMesh.h.
Referenced by findSubentityBoundingBoxWithPosition:rotMatrix:, and init.
|
private |
Definition at line 123 of file OOMesh.h.
Referenced by findSubentityBoundingBoxWithPosition:rotMatrix:, and init.
|
private |
Definition at line 124 of file OOMesh.h.
Referenced by findSubentityBoundingBoxWithPosition:rotMatrix:, and init.
|
private |
|
private |
Definition at line 97 of file OOMesh.h.
Referenced by suppressClangStuff.
|
private |
|
private |
|
private |
|
private |
Definition at line 98 of file OOMesh.h.
Referenced by suppressClangStuff.
|
private |
Definition at line 96 of file OOMesh.h.
Referenced by findBoundingBoxRelativeToPosition:ri:rj:rk:selfPosition:si:sj:sk:, and findSubentityBoundingBoxWithPosition:rotMatrix:.
|
private |
|
private |
|
private |
Provided by category OOMesh(Private).
Definition at line 111 of file OOMesh.h.
References OOMesh(Private)::boundingBox.
Referenced by OOMesh(Private)::boundingBox, OOMesh(Private)::calculateBoundingVolumes, octreeDepth, and suppressClangStuff.
|
private |
Definition at line 85 of file OOMesh.h.
Referenced by renderOpaqueParts.
|
private |
Definition at line 580 of file OOMesh.m.
Referenced by descriptionComponents.
|
private |
Definition at line 107 of file OOMesh.h.
Referenced by renderOpaqueParts.
|
private |
Definition at line 363 of file OOMesh.m.
Referenced by descriptionComponents, and faceCount.
|
private |
Definition at line 86 of file OOMesh.h.
Referenced by OOMesh(Private)::mutableCopyWithZone:, and renderOpaqueParts.
|
private |
Definition at line 88 of file OOMesh.h.
Referenced by rebindMaterials, and renderOpaqueParts.
|
private |
Definition at line 105 of file OOMesh.h.
Referenced by dealloc, and rebindMaterials.
|
private |
Definition at line 565 of file OOMesh.m.
Referenced by dealloc, materials, rebindMaterials, ShipSetMaterialsInternal(), ShipSetMaterialsInternal(), VisualEffectGetMaterials(), VisualEffectGetMaterials(), VisualEffectSetMaterialsInternal(), and VisualEffectSetMaterialsInternal().
|
private |
|
private |
Definition at line 631 of file OOMesh.m.
Referenced by dealloc, octree, renderOpaqueParts, and ShipEntity::setMesh:.
|
private |
Definition at line 104 of file OOMesh.h.
Referenced by renderOpaqueParts.
|
private |
Definition at line 358 of file OOMesh.m.
Referenced by descriptionComponents, findBoundingBoxRelativeToPosition:ri:rj:rk:selfPosition:si:sj:sk:, findSubentityBoundingBoxWithPosition:rotMatrix:, and vertexCount.