Skip to content

Commit

Permalink
Cleanup: Moved files to libdoomsday
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 17, 2020
1 parent 0852dd2 commit 40b7b41
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 19 deletions.
3 changes: 1 addition & 2 deletions doomsday/apps/client/include/gl/gl_tex.h
Expand Up @@ -25,8 +25,7 @@
#ifndef DE_GL_IMAGE_MANIPULATION_H
#define DE_GL_IMAGE_MANIPULATION_H

#include "misc/color.h"

#include <doomsday/color.h>
#include <doomsday/res/colorpalette.h>

typedef struct colorpalette_analysis_s {
Expand Down
3 changes: 1 addition & 2 deletions doomsday/apps/client/src/gl/gl_tex.cpp
Expand Up @@ -20,12 +20,11 @@
#include "de_platform.h"
#include "gl/gl_tex.h"
#include "dd_main.h"

#include "misc/color.h"
#include "render/r_main.h"
#include "resource/clientresources.h"
#include "gl/sys_opengl.h"

#include <doomsday/color.h>
#include <doomsday/res/colorpalette.h>
#include <de/legacy/memory.h>
#include <de/legacy/memoryzone.h>
Expand Down
3 changes: 1 addition & 2 deletions doomsday/apps/client/src/render/rendpoly.cpp
Expand Up @@ -20,9 +20,8 @@

#include "de_base.h"
#include "render/rendpoly.h"

#include "misc/color.h"
#include "render/walledge.h"
#include <doomsday/color.h>

using namespace de;

Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/resource/framemodel.cpp
Expand Up @@ -135,7 +135,7 @@ static void *allocAndLoad(FileHandle &file, int offset, int len)
// Precalculated normal LUT for use when loading MD2/DMD format models.
#define NUMVERTEXNORMALS 162
static float avertexnormals[NUMVERTEXNORMALS][3] = {
#include "misc/tab_anorms.h"
#include <doomsday/tab_anorms.h>
};

/**
Expand Down
2 changes: 0 additions & 2 deletions doomsday/apps/server/CMakeLists.txt
Expand Up @@ -33,9 +33,7 @@ set (SHARED_WITH_CLIENT
${src}/include/de_base.h
${src}/include/de_platform.h
${src}/include/edit_map.h
${src}/include/misc/color.h
${src}/include/misc/r_util.h
${src}/include/misc/tab_anorms.h
${src}/include/m_profiler.h
${src}/include/network/net_buf.h
${src}/include/network/net_event.h
Expand Down
@@ -1,7 +1,8 @@
/**
* @file color.h Color
*
* @author Copyright &copy; 2007-2013 Daniel Swanson <danij@dengine.net>
* @authors Copyright &copy; 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright &copy; 2007-2013 Daniel Swanson <danij@dengine.net>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
Expand All @@ -18,8 +19,9 @@
* 02110-1301 USA</small>
*/

#ifndef DE_DATA_COLOR_H
#define DE_DATA_COLOR_H
#pragma once

#include "libdoomsday.h"

#ifdef __cplusplus
extern "C" {
Expand All @@ -32,7 +34,7 @@ extern "C" {
*
* @ingroup data
*/
typedef struct ColorRawf_s {
typedef struct LIBDOOMSDAY_PUBLIC ColorRawf_s {
union {
// Straight RGBA vector representation.
float rgba[4];
Expand All @@ -55,11 +57,9 @@ typedef struct ColorRawf_s {
#endif
} ColorRawf;

float ColorRawf_AverageColor(ColorRawf* color);
float ColorRawf_AverageColorMulAlpha(ColorRawf* color);
LIBDOOMSDAY_PUBLIC float ColorRawf_AverageColor(ColorRawf* color);
LIBDOOMSDAY_PUBLIC float ColorRawf_AverageColorMulAlpha(ColorRawf* color);

#ifdef __cplusplus
} // extern "C"
#endif

#endif // DE_DATA_COLOR_H
@@ -1,5 +1,6 @@
/** @file color.cpp Color
*
* @authors Copyright &copy; 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright &copy; 2007-2013 Daniel Swanson <danij@dengine.net>
*
* @par License
Expand All @@ -17,8 +18,7 @@
* 02110-1301 USA</small>
*/

#include "de_platform.h"
#include "misc/color.h"
#include "doomsday/color.h"

float ColorRawf_AverageColor(ColorRawf* c)
{
Expand Down

0 comments on commit 40b7b41

Please sign in to comment.