mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-20 02:15:32 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
22
UI/TestDialog.cpp
Normal file
22
UI/TestDialog.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "TestDialog.h"
|
||||
#include "ui_TestDialog.h"
|
||||
#include <Core/CResCache.h>
|
||||
#include <iostream>
|
||||
#include "WResourceSelector.h"
|
||||
#include "WTextureGLWidget.h"
|
||||
#include <Resource/factory/CTextureDecoder.h>
|
||||
|
||||
TestDialog::TestDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::TestDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
CTexture *pTex = CTextureDecoder::LoadDDS(CFileInStream("E:/test2.dds", IOUtil::LittleEndian));
|
||||
ui->widget->SetTexture(pTex);
|
||||
}
|
||||
|
||||
TestDialog::~TestDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
Reference in New Issue
Block a user