WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ExporterPlugin.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include <glad/gl.h>
6
7#include "Logger.h"
8
9class Model;
10
16{
17public:
18 ExporterPlugin() = default;
19 virtual ~ExporterPlugin() = default;
20
21 virtual std::wstring menuLabel() const = 0;
22 virtual std::wstring fileSaveTitle() const = 0;
23 virtual std::wstring fileSaveFilter() const = 0;
24
25 virtual bool exportModel(Model*, std::wstring file) = 0;
26
28
29 void setAnimationsToExport(std::vector<int> values) { m_animsToExport = values; }
30
31protected:
32 void exportGLTexture(GLuint id, std::wstring filename) const;
34 std::vector<int> m_animsToExport;
35};
Abstract base class for model export plugins (OBJ, FBX, etc.).
virtual bool exportModel(Model *, std::wstring file)=0
virtual std::wstring fileSaveTitle() const =0
virtual ~ExporterPlugin()=default
void exportGLTexture(GLuint id, std::wstring filename) const
ExporterPlugin()=default
virtual std::wstring menuLabel() const =0
std::vector< int > m_animsToExport
void setAnimationsToExport(std::vector< int > values)
virtual std::wstring fileSaveFilter() const =0
bool canExportAnimation() const
Abstract base interface for all 3D model types.
Definition Model.h:5