Ensure classes using aligned types inherit from MemoryBase

This commit is contained in:
WMOkiishi 2023-01-30 20:11:00 -07:00 committed by rdb
parent 87b5aa9d1f
commit 3f3c65917b
5 changed files with 10 additions and 5 deletions

View File

@ -17,6 +17,7 @@
#include "pandabase.h"
#include "luse.h"
#include "memoryBase.h"
#include "geom.h"
#include "geomNode.h"
#include "geomVertexData.h"
@ -65,7 +66,7 @@ PUBLISHED:
INLINE void set_vertex_color(int vertex, PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0f);
private:
class Point {
class Point : public MemoryBase {
public:
INLINE Point();
INLINE Point(const LVecBase3 &point, const LColor &color);

View File

@ -15,6 +15,7 @@
#define ROPENODE_H
#include "pandabase.h"
#include "memoryBase.h"
#include "nurbsCurveEvaluator.h"
#include "pandaNode.h"
#include "pStatCollector.h"
@ -173,7 +174,7 @@ private:
void render_tube(CullTraverser *trav, CullTraverserData &data,
NurbsCurveResult *result) const;
class CurveVertex {
class CurveVertex : public MemoryBase {
public:
LPoint3 _p;
UnalignedLVecBase4 _c;

View File

@ -24,6 +24,7 @@
#include "transformState.h"
#include "geometricBoundingVolume.h"
#include "boundingHexahedron.h"
#include "memoryBase.h"
#include "pointerTo.h"
#include "drawMask.h"
#include "typedObject.h"
@ -94,7 +95,7 @@ private:
static TypeHandle _type_handle;
private:
class Point {
class Point : public MemoryBase {
public:
INLINE Point();
INLINE Point(const LVecBase3 &point, const LColor &color);

View File

@ -18,6 +18,7 @@
#include "config_pgraphnodes.h"
#include "pandaNode.h"
#include "luse.h"
#include "memoryBase.h"
#include "pvector.h"
/**
@ -115,7 +116,7 @@ private:
static const LColor &get_default_show_color(int index);
protected:
class Switch {
class Switch : public MemoryBase {
public:
INLINE Switch(PN_stdfloat in, PN_stdfloat out);
INLINE PN_stdfloat get_in() const;

View File

@ -17,6 +17,7 @@
#include "pandabase.h"
#include "luse.h"
#include "memoryBase.h"
#include "texture.h"
#include "pointerTo.h"
@ -26,7 +27,7 @@ class NodePath;
/**
*
*/
class EXPCL_PANDA_PGUI PGFrameStyle {
class EXPCL_PANDA_PGUI PGFrameStyle : public MemoryBase {
PUBLISHED:
INLINE PGFrameStyle();
INLINE PGFrameStyle(const PGFrameStyle &copy);