2015-07-26 21:39:49 +00:00
|
|
|
#include "TestDialog.h"
|
|
|
|
#include "ui_TestDialog.h"
|
2015-12-15 02:07:22 +00:00
|
|
|
#include "Editor/Widgets/WResourceSelector.h"
|
|
|
|
#include "Editor/Widgets/WTextureGLWidget.h"
|
|
|
|
#include <Core/Resource/Factory/CTextureDecoder.h>
|
|
|
|
#include <Core/Resource/CResCache.h>
|
|
|
|
|
2015-07-26 21:39:49 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
TestDialog::TestDialog(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::TestDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
2015-12-16 22:21:21 +00:00
|
|
|
CTexture *pTex = CTextureDecoder::LoadDDS(CFileInStream("E:/test2.dds", IOUtil::eLittleEndian));
|
2015-07-26 21:39:49 +00:00
|
|
|
ui->widget->SetTexture(pTex);
|
|
|
|
}
|
|
|
|
|
|
|
|
TestDialog::~TestDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|