aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/CompassTexture.h
blob: 44c99e076762895c577676d2f7dbc8607ed12a19 (plain)
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
#pragma once
#include "StitchedTexture.h"

class CompassTexture : public StitchedTexture
{
private:
	int m_iPad;
	CompassTexture* m_dataTexture;

public:
	static CompassTexture *instance;
	double rot, rota;

	CompassTexture();
	CompassTexture(int iPad, CompassTexture *dataTexture);

	void cycleFrames();
	void updateFromPosition(Level *level, double x, double z, double yRot, bool noNeedle, bool instant);
	
	virtual int getSourceWidth() const;
	virtual int getSourceHeight() const;
	virtual int getFrames();
	virtual void freeFrameTextures();		// 4J added
	virtual bool hasOwnData();		// 4J Added
};