2018-05-24 18:12:35 +02:00
|
|
|
#pragma once
|
|
|
|
#include "windows.h"
|
|
|
|
#include "../shaders/glsl.h"
|
|
|
|
|
|
|
|
typedef void(*APPLYCALLBACK) ();
|
|
|
|
|
|
|
|
class CShaderParamDlg
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static INT_PTR CALLBACK DlgShaderParams(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
|
2018-05-25 22:24:32 +02:00
|
|
|
static INT_PTR CALLBACK WndProcContainerStatic(HWND hStatic, UINT msg, WPARAM wParam, LPARAM lParam);
|
2018-05-24 18:12:35 +02:00
|
|
|
void createContent(HWND hDlg);
|
|
|
|
void get_changed_parameters(HWND hDlg);
|
2018-05-25 22:24:32 +02:00
|
|
|
void handle_up_down(HWND hStatic, int id, int change);
|
2018-05-24 18:12:35 +02:00
|
|
|
void save_custom_shader();
|
2018-05-25 22:24:32 +02:00
|
|
|
void apply_changes(HWND hDlg);
|
2018-05-24 18:12:35 +02:00
|
|
|
|
|
|
|
GLSLShader &shader;
|
|
|
|
HFONT hFont;
|
|
|
|
unsigned int avgCharWidth;
|
|
|
|
unsigned int avgCharHeight;
|
|
|
|
int scrollpos;
|
|
|
|
|
2018-05-25 22:24:32 +02:00
|
|
|
WNDPROC oldStaticProc;
|
|
|
|
|
2018-05-24 18:12:35 +02:00
|
|
|
public:
|
|
|
|
CShaderParamDlg(GLSLShader &shade);
|
|
|
|
virtual ~CShaderParamDlg();
|
|
|
|
|
|
|
|
bool show();
|
|
|
|
};
|
|
|
|
|