Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "Headers/IMPrimitive.h"
#include "Platform/Video/Textures/Headers/Texture.h"

namespace Divide {

IMPrimitive::IMPrimitive(GFXDevice& context)
    : GraphicsResource(context),
      GUIDWrapper(),
      _inUse(true),
      _canZombify(true),
      _forceWireframe(false),
      _paused(true),
      _zombieCounter(0),
      _texture(nullptr),
      _drawShader(nullptr),
      _stateHash(0)
{
}

IMPrimitive::~IMPrimitive() 
{
    clear();
}

void IMPrimitive::clear() {
    zombieCounter(0);
    stateHash(0);
    clearRenderStates();
    _worldMatrix.identity();
    _canZombify = true;
    _texture = nullptr;
    _drawShader = nullptr;
}

};

Commits for Divide-Framework/trunk/Source Code/Platform/Video/IMPrimitive.cpp

Diff revisions: vs.
Revision Author Commited Message
591 Diff Diff IonutCava picture IonutCava Wed 02 Dec, 2015 17:17:23 +0000

[IonutCava]
- More work on the ForwardPlus renderer
- Singleton cleanup
- First steps for reducing scope of GFXDevice class

450 Diff Diff IonutCava picture IonutCava Wed 27 May, 2015 16:06:41 +0000

[Ionut]
- Window size != game resolution
- Always draw to a render target and always load PostFX data.
— PostFX enable/disable toggles batch processing on and off
- Added a resize method to textures that allows texture dimension changes without creating new resources

439 Diff Diff IonutCava picture IonutCava Sun 17 May, 2015 21:18:15 +0000

[Ionut]
- Added start and end color options to the Line structure
- Changed the root node’s BB calculation algorithm
- Improved IMInterface garbage collection
- Simplified hacky scene line rendering system

436 Diff Diff IonutCava picture IonutCava Thu 14 May, 2015 16:09:08 +0000

[Ionut]
- Initial cleanup of RenderStateBlock and RenderStateBlockDescriptor classes
- lineWith is now part of the render state and as such, must be explicitly set in the state hash
— This affects all IMPrimitives, especially those rendered via drawBox3D and drawLines

403 Diff Diff IonutCava picture IonutCava Fri 17 Apr, 2015 16:06:14 +0000

[Ionut]
- Improved the DSA wrapper
- Improved IMPrimitive debugging info
- Added sync objects for multi-threaded texture and shader loading
- Cleaned up the animation system a bit:
— Still to do: Create skeleton per sub-mesh starting from the sub meshes' parent node instead of the root scene node. SubMeshes should not have identical skeletons but only the skeletons for their own geometry!

350 Diff Diff IonutCava picture IonutCava Tue 10 Feb, 2015 16:25:39 +0000

[Ionut]
- Simplified some Util-namespace level functions by using STL algorithms where possible
- Formatted the entire codebase using clang-format with the following style: "{BasedOnStyle: Google, IndentWidth: 4}"
- Attempted to make ProfileTimer thread-safe (temp fix until std::chrono works properly in Visual Studio)

334 IonutCava picture IonutCava Wed 10 Dec, 2014 17:21:22 +0000

[Ionut]
- Reorganized the Hardware project and renamed to "Platform"
- Reorganized the Server project