Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Client|Renderer: Added ModelRenderer to oversee GL2 model rendering
Work in progress: ModelRenderer owns the ModelDrawable instances needed for drawing objects using 3D models. All available models are loaded into memory when the assets become available. GL resources will be allocated later, when the models need to be drawn. "net.dengine.client.testmodel" contains a couple of test models for development purposes.
- Loading branch information
Showing
14 changed files
with
8,748 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** @file modelrenderer.h Model renderer. | ||
* | ||
* @authors Copyright (c) 2014 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
* | ||
* @par License | ||
* GPL: http://www.gnu.org/licenses/gpl.html | ||
* | ||
* <small>This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. This program is distributed in the hope that it | ||
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
* Public License for more details. You should have received a copy of the GNU | ||
* General Public License along with this program; if not, see: | ||
* http://www.gnu.org/licenses</small> | ||
*/ | ||
|
||
#ifndef DENG_CLIENT_MODELRENDERER_H | ||
#define DENG_CLIENT_MODELRENDERER_H | ||
|
||
#include <de/ModelDrawable> | ||
|
||
/** | ||
* The model renderer prepares available model assets for drawing (using ModelDrawable), | ||
* and keeps the set of needed ModelDrawable instances in memory. | ||
* | ||
* @ingroup render | ||
*/ | ||
class ModelRenderer | ||
{ | ||
public: | ||
ModelRenderer(); | ||
|
||
private: | ||
DENG2_PRIVATE(d) | ||
}; | ||
|
||
#endif // DENG_CLIENT_MODELRENDERER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
title: Test Model | ||
version: 1.0 | ||
license: GPL 3+ | ||
tags: dev | ||
|
||
asset model.thing.possessed { | ||
path = "boblampclean.md5mesh" | ||
} |
Binary file added
BIN
+62.5 KB
doomsday/client/net.dengine.client.pack/testmodel.pack/Marine_green.pcx
Binary file not shown.
5,263 changes: 5,263 additions & 0 deletions
5,263
doomsday/client/net.dengine.client.pack/testmodel.pack/boblampclean.md5anim
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.