mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:49:46 +02:00
use base class - replaced MyAvatar with Avatar
This commit is contained in:
parent
d36ced9b92
commit
7621d70c24
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ SnapshotMetaData* Snapshot::parseSnapshotData(QString snapshotPath) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Snapshot::saveSnapshot(QGLWidget* widget, Profile* profile, MyAvatar* avatar) {
|
void Snapshot::saveSnapshot(QGLWidget* widget, Profile* profile, Avatar* avatar) {
|
||||||
QImage shot = widget->grabFrameBuffer();
|
QImage shot = widget->grabFrameBuffer();
|
||||||
|
|
||||||
glm::vec3 location = avatar->getPosition();
|
glm::vec3 location = avatar->getPosition();
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QGLWidget>
|
#include <QGLWidget>
|
||||||
|
|
||||||
#include "avatar/MyAvatar.h"
|
#include "avatar/Avatar.h"
|
||||||
#include "avatar/Profile.h"
|
#include "avatar/Profile.h"
|
||||||
|
|
||||||
class SnapshotMetaData {
|
class SnapshotMetaData {
|
||||||
|
@ -39,7 +39,7 @@ private:
|
||||||
class Snapshot {
|
class Snapshot {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void saveSnapshot(QGLWidget* widget, Profile* profile, MyAvatar* avatar);
|
static void saveSnapshot(QGLWidget* widget, Profile* profile, Avatar* avatar);
|
||||||
static SnapshotMetaData* parseSnapshotData(QString snapshotPath);
|
static SnapshotMetaData* parseSnapshotData(QString snapshotPath);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue