mirror of https://github.com/PrimeDecomp/prime.git
Link CFontImageDef
This commit is contained in:
parent
1e30daa096
commit
bbf3b658c2
|
@ -13,6 +13,7 @@ public:
|
|||
CFontImageDef(const TToken< CTexture >& texture, const CVector2f& cropFactor);
|
||||
CFontImageDef(const rstl::vector< TToken< CTexture > >& texture, float fps,
|
||||
const CVector2f& cropFactor);
|
||||
|
||||
bool IsLoaded() const;
|
||||
// inline short GetWidth() { }
|
||||
int GetHeight() {
|
||||
|
|
|
@ -40,21 +40,13 @@ public:
|
|||
inline const_iterator end() const { return const_iterator(xc_items + x4_count); }
|
||||
inline vector() : x4_count(0), x8_capacity(0), xc_items(NULL) {}
|
||||
inline vector(int count) : x4_count(0), x8_capacity(0), xc_items(0) { reserve(count); }
|
||||
inline explicit vector(const T& v) : x4_count(1), x8_capacity(1) {
|
||||
if (x4_count * sizeof(T) == 0) {
|
||||
xc_items = NULL;
|
||||
} else {
|
||||
x0_allocator.allocate(xc_items, x4_count * sizeof(T));
|
||||
}
|
||||
new (&xc_items[0]) T(v);
|
||||
}
|
||||
vector(int count, const T& v) : x4_count(count), x8_capacity(count) {
|
||||
if (x4_count * sizeof(T) == 0) {
|
||||
xc_items = NULL;
|
||||
} else {
|
||||
x0_allocator.allocate(xc_items, x4_count * sizeof(T));
|
||||
}
|
||||
uninitialized_fill_n(xc_items, x8_capacity, v);
|
||||
uninitialized_fill_n(xc_items, count, v);
|
||||
}
|
||||
vector(const vector& other) {
|
||||
x4_count = other.x4_count;
|
||||
|
|
|
@ -60,7 +60,6 @@ FORCEFILES
|
|||
CloseEnough.o
|
||||
CParticleGen.o
|
||||
CWarp.o
|
||||
CFontImageDef.o
|
||||
CImageInstruction.o
|
||||
RumbleFxTable.o
|
||||
CGuiWidgetDrawParms.o
|
||||
|
|
|
@ -602,7 +602,7 @@ KYOTO_2 :=\
|
|||
$(BUILD_DIR)/src/Kyoto/CTimeProvider.o\
|
||||
$(BUILD_DIR)/asm/Kyoto/CARAMToken.o\
|
||||
$(BUILD_DIR)/asm/Kyoto/Audio/CMidiManager.o\
|
||||
$(BUILD_DIR)/asm/Kyoto/Text/CFontImageDef.o\
|
||||
$(BUILD_DIR)/src/Kyoto/Text/CFontImageDef.o\
|
||||
$(BUILD_DIR)/asm/Kyoto/Text/CImageInstruction.o\
|
||||
$(BUILD_DIR)/asm/Kyoto/Text/CTextRenderBuffer.o\
|
||||
$(BUILD_DIR)/asm/Kyoto/Graphics/CCubeMoviePlayer.o\
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
#include <Kyoto/Text/CFontImageDef.hpp>
|
||||
|
||||
CFontImageDef::CFontImageDef(const TToken< CTexture >& texture, const CVector2f& cropFactor)
|
||||
: mFPS(0.f), mTextures(texture), mCropFactor(cropFactor) {
|
||||
: mFPS(0.f), mTextures(1, texture), mCropFactor(cropFactor) {
|
||||
rstl::vector< TToken< CTexture > >::iterator it = mTextures.begin();
|
||||
|
||||
for (; it != mTextures.end(); ++it) {
|
||||
it->Lock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue