Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 948 vs 949 for /trunk/Source Code/Platform/Video/GenericDrawCommand.cpp

Diff revisions: vs.
  @@ -62,19 +62,32 @@
62 62 static_assert(sizeof(GenericDrawCommand) == 56, "Size of GenericDrawCommand is incorrect!");
63 63 }
64 64
65 - void GenericDrawCommand::set(const GenericDrawCommand& base) {
66 - _cmd.set(base._cmd);
67 - _lodIndex = base._lodIndex;
68 - _drawCount = base._drawCount;
69 - _drawToBuffer = base._drawToBuffer;
70 - _renderOptions = base._renderOptions;
71 - _type = base._type;
72 - _sourceBuffer = base._sourceBuffer;
73 - _commandOffset = base._commandOffset;
65 + GenericDrawCommand::GenericDrawCommand(const GenericDrawCommand& other)
66 + : _cmd(other._cmd),
67 + _lodIndex(other._lodIndex),
68 + _drawCount(other._drawCount),
69 + _drawToBuffer(other._drawToBuffer),
70 + _renderOptions(other._renderOptions),
71 + _type(other._type),
72 + _sourceBuffer(other._sourceBuffer),
73 + _commandOffset(other._commandOffset)
74 + {
75 + }
76 +
77 + const GenericDrawCommand& GenericDrawCommand::operator= (const GenericDrawCommand& other) {
78 + _cmd.set(other._cmd);
79 + _lodIndex = other._lodIndex;
80 + _drawCount = other._drawCount;
81 + _drawToBuffer = other._drawToBuffer;
82 + _renderOptions = other._renderOptions;
83 + _type = other._type;
84 + _sourceBuffer = other._sourceBuffer;
85 + _commandOffset = other._commandOffset;
86 + return *this;
74 87 }
75 88
76 89 void GenericDrawCommand::reset() {
77 - set(GenericDrawCommand());
90 + *this = GenericDrawCommand();
78 91 }
79 92
80 93 bool GenericDrawCommand::compatible(const GenericDrawCommand& other) const {