Commit Graph

128 Commits

Author SHA1 Message Date
Andrew Talbot c39f7e7fdb d3drm: Avoid signed-unsigned integer comparisons. 2013-01-03 11:52:16 +01:00
Frédéric Delanoy 8ec82dfaae d3drm: Fix a leak (coverity). 2012-12-24 13:33:06 +01:00
Christian Costa 871aa9d14d d3drm: Check params in IDirect3DRMMeshBuilder2Impl_GetVertices + tests. 2012-12-17 20:31:23 +01:00
Christian Costa ec51c5f737 d3drm: Face data size is in number of DWORD. 2012-12-14 11:56:53 +01:00
Christian Costa 53e37121a4 d3drm: Handle texture load proc when loading mesh data. 2012-12-14 11:56:48 +01:00
Christian Costa 7a5b12c8ef d3drm: Handle all materials in material list and create corresponding mesh groups + tests. 2012-12-13 20:18:05 +01:00
Christian Costa de690b8dae d3drm: Move mesh builder data cleaning code into a separate function. 2012-10-31 18:13:05 +01:00
Christian Costa 43d3ba36a1 d3drm: Init vertices before creating group. 2012-10-31 18:09:19 +01:00
Christian Costa 2978dbea0b d3drm: When creating a mesh, if all faces have the same number of vertex, set vertex_per_face and don't put nb indices in face data. 2012-10-25 16:51:59 +02:00
Christian Costa cb131bf030 d3drm: Fix normals computation and add according tests. 2012-10-22 12:06:21 +02:00
Christian Costa 466c244d18 d3drm: Enum all materials even if only the first one is handled. 2012-10-22 12:05:53 +02:00
Christian Costa 5e1d854ee5 d3drm: Fix child leak. 2012-10-22 12:05:48 +02:00
Christian Costa ff0e82502f d3drm: Fix wrong condition. 2012-10-22 12:05:44 +02:00
André Hentschel 00773feafd d3drm: Implement IDirect3DRMMesh_GetClassName. 2012-06-18 11:59:40 +02:00
André Hentschel ac5b932363 d3drm: Implement IDirect3DRMX_CreateMesh. 2012-06-18 11:59:40 +02:00
André Hentschel afe616b588 d3drm: Implement IDirect3DRMMeshBuilderX_GetClassName. 2012-06-15 10:31:53 +02:00
Christian Costa f1cd213931 d3drm: Implement IDirect3DRMMeshImpl_SetGroupColorRGB. 2012-06-11 11:25:18 +02:00
Christian Costa 85f4fda840 d3drm: Free all mesh resources when releasing mesh object. 2012-06-11 11:25:08 +02:00
Christian Costa a77fd778c2 d3drm: Free texture object when releasing mesh builder object. 2012-06-11 11:25:03 +02:00
Christian Costa 0023ddf117 d3drm: Handle texture associated with the material when loading a mesh. 2012-06-11 11:24:58 +02:00
Christian Costa 422d57e7d2 d3drm: Fix vertex index test and print a warning when it is out of range. 2012-06-11 11:24:40 +02:00
Christian Costa 6aa77edfb3 d3drm: Implement IDirect3DRMMeshBuilderX_SetMaterial. 2012-06-06 12:44:29 +02:00
Christian Costa 8080528fc4 d3drm: Pass texture of mesh builder to newly created mesh. 2012-06-06 12:41:26 +02:00
Christian Costa db6b10e22d d3drm: Implement IDirect3DRMMesh_SetGroupTexture. 2012-06-06 12:40:42 +02:00
Christian Costa 23db9d8bed d3drm: Pass mesh builder color to newly created mesh. 2012-06-05 19:58:12 +02:00
Christian Costa b7a74b0204 d3drm: Implement IDirect3DRMMeshImpl_SetGroupColor. 2012-06-05 19:58:12 +02:00
Christian Costa ab08e5938a d3drm: Load mesh color to mesh builder. 2012-06-05 19:58:11 +02:00
Christian Costa ab8619e920 d3drm: Implement IDirect3DRMMesh_GetGroupColor. 2012-06-05 19:58:11 +02:00
Christian Costa 08cfdc1191 d3drm: Implement IDirect3DRMMeshBuilderX_SetColor and IDirect3DRMMeshBuilderX_SetColorRGB. 2012-06-05 19:58:11 +02:00
Christian Costa 38ba9bacd0 d3drm: Implement IDirect3DRMMeshImpl_SetGroupMaterial and forward material from mesh builder to created mesh. 2012-06-01 13:24:20 +02:00
Christian Costa 84f2e0e9ac d3drm: Handle material list in mesh. 2012-06-01 13:24:17 +02:00
Christian Costa 8d9d97be0f d3drm: Generate normals automatically when there are not present in the x file. 2012-05-30 17:17:56 +02:00
Christian Costa 3fbe4914bd d3drm: Implement IDirect3DRMMeshImpl_GetGroupMaterial. 2012-05-30 17:17:55 +02:00
Christian Costa b340501a93 d3drm: Implement IDirect3DRMMesh_GetGroupTexture. 2012-05-30 17:17:55 +02:00
Christian Costa a33037abd1 d3drm: Add support for D3DRMLOAD_FROMFILE in IDirect3DRMMeshBuilder3_Load. 2012-05-25 13:44:19 +02:00
Christian Costa 63f39c9196 d3drm: Set vertices data of the created mesh. 2012-05-23 17:41:14 +02:00
Christian Costa 24817de04e d3drm: Implement IDirect3DRMMesh_GetVertices. 2012-05-22 18:06:13 +02:00
Christian Costa b068615ef3 d3drm: Implement IDirect3DRMMesh_SetVertices. 2012-05-22 18:06:11 +02:00
Christian Costa f0d3f207ab d3drm: Implement IDirect3DRMMesh_GetGroup. 2012-05-22 18:06:04 +02:00
Christian Costa 5a979deeb3 d3drm: Implement IDirect3DRMMesh_GetGroupCount. 2012-05-21 20:21:56 +02:00
Christian Costa 8bba7cd226 d3drm: Improve IDirect3DRMMeshBuilder3_CreateMesh and forward IDirect3DRMMeshBuilder2_CreateMesh to it. 2012-05-21 20:21:51 +02:00
Christian Costa 43fed89d04 d3drm: Implement IDirect3DRMMesh_AddGroup. 2012-05-21 20:21:46 +02:00
Christian Costa e07f824241 d3drm: Implement IDirect3DRMMeshBuilderX_Scale method. 2012-05-21 20:21:32 +02:00
Christian Costa 2dbbecbb9e d3drm: Display new ref in trace for AddRef and Release for IDirect3DRMMesh. 2012-05-17 17:20:57 +02:00
Christian Costa c436887483 d3drm: Retrieve mesh name at loading time. Implement GetName and SetName. 2012-05-15 17:02:04 +02:00
Christian Costa bd484dca06 d3drm: Implement CreateMesh method and stubbed IDirect3DRMMesh interface. 2012-04-02 18:34:48 +02:00
Christian Costa 5763eb1641 d3drm: Make IDirect3DRMMeshBuilderX stub return D3DRM_OK. 2012-04-02 18:33:35 +02:00
Christian Costa db0ad52b49 d3drm: Move mesh loading code into a separate function so it can be shared. 2012-03-29 20:49:34 +02:00
Christian Costa 7a320e5ca4 d3drm: Implement SetTextureCoordinates. 2012-03-16 15:37:29 +01:00
Christian Costa b89c32b2a1 d3drm: If there is no texture coordinates in loaded mesh, generate default texture coordinates for each vertex. 2012-03-16 15:37:19 +01:00
Christian Costa ea532f633c d3drm: Add refcount info to AddRef and Release traces. 2012-03-16 15:36:58 +01:00
Christian Costa 549f8796dd d3drm: Texture callback cannot be passed directly. Texture object argument is different so disable it for now. 2012-03-16 15:36:30 +01:00
Christian Costa c6ce077f41 d3drm: Remove "partial stub" mention of forwarded methods. 2012-03-16 15:36:25 +01:00
Christian Costa 7294b417e3 d3drm: Complete Load method by adding normals indices and terminating null DWORD to faces data + tests. 2012-03-14 17:53:59 +01:00
Christian Costa 5b1cc4682b d3drm: Get data from the right objects (sub-objects). 2012-03-14 17:53:43 +01:00
Christian Costa 0233344799 d3drm: Fix some tests conditions. 2012-03-14 17:52:53 +01:00
Christian Costa fe339ba25b d3drm: Fix leakage of pData2 on error. 2012-03-13 17:44:33 +01:00
Christian Costa ccb38b2d9f d3drm: Fix leakage of This->pCoords2d when releasing object. 2012-03-13 17:44:32 +01:00
Christian Costa 28745b6f98 d3drm: Turn some FIXME into TRACE. 2012-03-13 17:44:32 +01:00
André Hentschel 9defecb013 d3drm: Forward all IUnknown methods from IDirect3DRMMeshBuilder3. 2012-01-20 14:22:24 +01:00
André Hentschel 2e3e62b6aa d3drm: Reorder meshbuilder creation function to avoid forward declarations. 2012-01-20 14:22:21 +01:00
André Hentschel 467bbc4497 d3drm: Fix invocation of GetTextureCoordinates. 2012-01-16 12:45:38 +01:00
André Hentschel 33c7a865cb d3drm: Implement GetVertices for IDirect3DRMMeshBuilder3. 2012-01-13 18:17:31 +01:00
André Hentschel 5aa43a2bfb d3drm: Move GetTextureCoordinates from IDirect3DRMMeshBuilder2 to IDirect3DRMMeshBuilder3. 2012-01-13 18:17:30 +01:00
André Hentschel 3931338eca d3drm: Move Load implementation to IDirect3DRMMeshBuilder3. 2012-01-13 18:17:27 +01:00
André Hentschel 59186dd4a0 d3drm: Fix QueryInterface forwarding. 2012-01-13 18:17:26 +01:00
André Hentschel b5ba054ce8 Assorted header comment cleanup. 2012-01-04 19:35:13 +01:00
André Hentschel 7164806b56 d3drm: Add IDirect3DRMMeshBuilder3 interface. 2011-12-29 16:19:04 +01:00
André Hentschel f8766bdc72 d3drm: Add IDirect3DRMMeshBuilder2 interface. 2011-12-28 18:57:07 +01:00
Michael Stefaniuc 278b7a0445 d3drm: Use an iface instead of a vtbl pointer in IDirect3DRMMeshBuilderImpl. 2010-11-29 13:28:22 +01:00
David Adam 668ddfba33 d3drm: Remove a useless comment. 2010-05-24 14:45:48 +02:00
David Adam c042f935b1 d3drm: Do not redefine already defined guids. 2010-05-24 14:45:44 +02:00
Gerald Pfeifer 40b1b8fa7e d3drm: Remove two variables which are not really used from IDirect3DRMMeshBuilderImpl_Load. 2010-04-26 07:01:13 -05:00
Christian Costa e0756602a4 d3drm: Make IDirect3DRMMeshBuilderImpl_Load handle normals and texture coordinates.
Implement IDirect3DRMMeshBuilderImpl_GetTextureCoordinates.
2010-02-15 12:20:02 +01:00
Christian Costa a4b622d81a d3drm: Beginning of Mesh info retrieval. 2010-02-08 17:14:44 +01:00
Christian Costa edd9e8cc5b d3drm: Improve IDirect3DRMMeshBuilderImpl_Load and corresponding test. 2010-02-04 13:39:28 +01:00
Christian Costa 4296852b88 d3drm: Implement partially IDirect3DRMMeshBuilderImpl_Load. 2010-02-01 12:49:29 +01:00
Christian Costa 5b6eada53f d3drm: Add stubbed implementation of IDirect3DRMMeshBuilder. 2010-01-29 14:59:53 +01:00