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
36
37
38
39
40
41
42
43
44
/*
** GLIM - OpenGL Immediate Mode
** Copyright Jan Krassnigg (Jan@Krassnigg.de)
** For more details, see the included Readme.txt.
*/

#include "glim.h"
#include <iostream>
#include <stdio.h>

#ifdef WIN32
	#define WIN32_LEAN_AND_MEAN
	#include <windows.h>
#endif

namespace NS_GLIM
{
	using namespace std;

	GLIM_CALLBACK GLIM_Interface::s_StateChangeCallback = nullptr;
	bool GLIM_Interface::s_bForceWireframe = false;

#ifdef AE_RENDERAPI_D3D11
		ID3D11Device* GLIM_Interface::s_pDevice = nullptr;
		ID3D11DeviceContext* GLIM_Interface::s_pContext = nullptr;
		GLIM_CALLBACK_SETINPUTLAYOUT GLIM_Interface::s_SetInputLayoutCallback = nullptr;
		GLIM_CALLBACK_RELEASERESOURCE GLIM_Interface::s_ReleaseResourceCallback = nullptr;
		char GLIM_Interface::s_VertexPosSemanticName[32] = "POSITION";
#endif


	glimException::glimException (const string &err) : runtime_error (err)
	{
		printf (err.c_str ());
		cerr << err;

#ifdef WIN32
		MessageBox (nullptr, err.c_str (), "GLIM - Error", MB_ICONERROR);
#endif
	}



}

Commits for Divide-Framework/trunk/Source Code/Libs/src/GLIM/Stuff.cpp

Diff revisions: vs.
Revision Author Commited Message
286 Diff Diff IonutCava picture IonutCava Fri 18 Jul, 2014 16:32:03 +0000

[Ionut] [[BR]]

    • very buggy commit ** [[BR]]

- New rendering pipeline: [[BR]]
— Bumped OpenGL version to 4.4 [[BR]]
— Command based rendering. GFXDevice dispatches rendering commands to their respective buffers [[BR]]
— State changing is exclusively controlled by the GFXDevice class [[BR]]
— Material properties and transform matrices are stored in shader storage buffers that are updated after culling and uploaded once per RenderPass. Objects use drawIDs to index data in shaders [[BR]]
— Removed all custom matrices and other, per shader, bind data [[BR]]
— Removed per node light data. Light culling and shader buffers will replace the old light management system [[BR]]
— Framebuffers now use the Texture class for attachments [[BR]]
— Sampler objects now work like RenderStateBlocks. GL_API handles them and stores them in a hash indexed map [[BR]]
— Removed “prepareMaterial” calls. Pre-draw material setup is now only limited to texture binding [[BR]]
— Moved immediate mode emulation and primitive rendering from API level to GFXDevice level [[BR]]
— Framebuffer rendering must be completed with a call to end() to ensure proper MSAA resolve (asserts, otherwise) [[BR]]
- Fixed hash code generation for RenderStateBlock (and now, glSamplerObject) using boost::hash_combine [[BR]]
- Temporarily disabled XML caching for materials [[BR]]

249 Diff Diff k1ngp1n picture k1ngp1n Mon 31 Mar, 2014 20:42:31 +0000

[Ionut] [[BR]]
- Migrated to platform toolset v100 [[BR]]
- Updated boost to 1.55 [[BR]]
- Moved from “NULL” to “nullptr” [[BR]]
- DevIL is now linked dynamically [[BR]]

221 Diff Diff k1ngp1n picture k1ngp1n Wed 08 Jan, 2014 18:50:02 +0000

[Ionut] [[BR]]
- Merged branch “Shadows And Animations” back into trunk [[BR]]
- Added DoxygenGUI project file [[BR]]

  • Buggy *
219 k1ngp1n picture k1ngp1n Wed 08 Jan, 2014 15:47:57 +0000

[Ionut] [[BR]]
- Made GLIM part of the main solution [[BR]]
- glLineWidth fixes [[BR]]
- IMEmulation fixes [[BR]]