Skip to content
This repository has been archived by the owner on Jun 26, 2019. It is now read-only.

Commit

Permalink
Remove more graphic includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Nov 30, 2018
1 parent 3ce9dac commit 9a0f36b
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 1,223 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ scripts/work/
/freetype.dll
/autoexec.cfg
_test.exe
src/.vscode
3 changes: 0 additions & 3 deletions src/game/client/components/menus_ingame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
#include <engine/friends.h>
#include <engine/serverbrowser.h>
#include <engine/shared/config.h>

#include <generated/protocol.h>
#include <generated/client_data.h>

#include <game/client/animstate.h>
#include <game/client/gameclient.h>
#include <game/client/render.h>

#include "menus.h"
#include "motd.h"
Expand Down
1 change: 0 additions & 1 deletion src/game/client/components/nameplates.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/textrender.h>
#include <engine/shared/config.h>
#include <generated/protocol.h>
#include <generated/client_data.h>
Expand Down
3 changes: 0 additions & 3 deletions src/game/client/components/spectator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/demo.h>
#include <engine/shared/config.h>

#include <generated/client_data.h>
#include <generated/protocol.h>

#include <game/client/animstate.h>
#include <game/client/render.h>

#include "spectator.h"

Expand Down
26 changes: 1 addition & 25 deletions src/game/client/render_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#include <math.h>
#include <base/math.h>
#include <base/tl/base.h>
#include <base/vmath.h>

#include "render.h"

void ValidateFCurve(const vec2& p0, vec2& p1, vec2& p2, const vec2& p3)
{
Expand Down Expand Up @@ -123,27 +123,3 @@ float SolveBezier(float x, float p0, float p1, float p2, float p3)
}
}
}

void CRenderTools::RenderEvalEnvelope(CEnvPoint *pPoints, int NumPoints, int Channels, float Time, float *pResult)
{
return;
}

static void Rotate(CPoint *pCenter, CPoint *pPoint, float Rotation)
{
int x = pPoint->x - pCenter->x;
int y = pPoint->y - pCenter->y;
pPoint->x = (int)(x * cosf(Rotation) - y * sinf(Rotation) + pCenter->x);
pPoint->y = (int)(x * sinf(Rotation) + y * cosf(Rotation) + pCenter->y);
}

void CRenderTools::RenderQuads(CQuad *pQuads, int NumQuads, int RenderFlags, ENVELOPE_EVAL pfnEval, void *pUser)
{

}

void CRenderTools::RenderTilemap(CTile *pTiles, int w, int h, float Scale, vec4 Color, int RenderFlags,
ENVELOPE_EVAL pfnEval, void *pUser, int ColorEnv, int ColorEnvOffset)
{

}
Loading

0 comments on commit 9a0f36b

Please sign in to comment.