mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
OGL plugin: +Autoscale option (attempts to remove borders, even without XFB). Lots of cleanup, especially around aspect ratio and similar stuff. MP2 scanner still broken, wonder when that happened?
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2470 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -118,4 +118,10 @@ namespace
|
||||
#define GC_ALIGNED64_DECL(x) __attribute((aligned(64))) x
|
||||
#endif // WIN32
|
||||
|
||||
// A macro to disallow the copy constructor and operator= functions
|
||||
// This should be used in the private: declarations for a class
|
||||
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||
TypeName(const TypeName&); \
|
||||
void operator=(const TypeName&)
|
||||
|
||||
#endif // COMMON_H
|
||||
|
@ -89,9 +89,6 @@ struct PortableVertexDeclaration
|
||||
// all the data loading code must always be made compatible.
|
||||
class NativeVertexFormat
|
||||
{
|
||||
protected:
|
||||
NativeVertexFormat() {}
|
||||
|
||||
public:
|
||||
virtual ~NativeVertexFormat() {}
|
||||
|
||||
@ -103,6 +100,13 @@ public:
|
||||
|
||||
// TODO: move these in under private:
|
||||
u32 m_components; // VB_HAS_X. Bitmask telling what vertex components are present.
|
||||
|
||||
protected:
|
||||
// Let subclasses construct.
|
||||
NativeVertexFormat() {}
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(NativeVertexFormat);
|
||||
};
|
||||
|
||||
#endif // _NATIVEVERTEXFORMAT_H
|
||||
|
@ -23,6 +23,8 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
#include "CPMemory.h"
|
||||
#include "DataReader.h"
|
||||
#include "NativeVertexFormat.h"
|
||||
@ -103,6 +105,8 @@ private:
|
||||
|
||||
void WriteGetVariable(int bits, Gen::OpArg dest, void *address);
|
||||
void WriteSetVariable(int bits, void *address, Gen::OpArg dest);
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(VertexLoader);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user