Ejemplo n.º 1
0
void CBaikuDemoApp::LoadTheme()
{
	CString strPicPath = _T("");
	CString strThemePath = GetAppResPath();
	CBitmap*	pBitmap = NULL;
	CBitmap*	pBgBitmap = NULL;
	Image*		pMinBtnImage = NULL;
	Image*		pMaxBtnImage = NULL;
	Image*		pCloseBtnImage = NULL;
	Image*		pRestoreBtnImage = NULL;

	m_pTheme = new ThemeDialog();
	
	strPicPath = strThemePath + _T("\\dialog.bmp");
	pBitmap = LoadBmpImage(strPicPath);
	strPicPath = strThemePath + _T("\\background.bmp");
	pBgBitmap = LoadBmpImage(strPicPath);
	strPicPath = strThemePath + _T("\\max_btn_dlg.png");
	pMaxBtnImage = LoadPngImage(strPicPath);
	strPicPath = strThemePath + _T("\\min_btn_dlg.png");
	pMinBtnImage = LoadPngImage(strPicPath);
	strPicPath = strThemePath + _T("\\close_btn_dlg.png");
	pCloseBtnImage = LoadPngImage(strPicPath);
	strPicPath = strThemePath + _T("\\restore_btn_dlg.png");
	pRestoreBtnImage = LoadPngImage(strPicPath);
	
	m_pTheme->SetBorder(pBitmap, pBitmap);
	m_pTheme->SetBackground(pBgBitmap);
	m_pTheme->SetMargins(3, 3, 3, 3, 3, 3, 27, 3);
	m_pTheme->SetMinButton(1, CPoint(45, 6), pMinBtnImage);
	m_pTheme->SetMaxButton(1, CPoint(25, 6), pMaxBtnImage, pRestoreBtnImage);
	m_pTheme->SetCloseButton(1, CPoint(5, 6), pCloseBtnImage);
}
Ejemplo n.º 2
0
static void Load() {
  LoadPngImage(&texture, &texturePal, "data/texture-shades.png");
  LoadPngImage(&colorMap, NULL, "data/texture-shades-map.png");
  mesh = NewMeshFromFile("data/shattered_ball.robj");

  CenterMeshPosition(mesh);
  CalculateSurfaceNormals(mesh);
  NormalizeMeshSize(mesh);

  RenderAllFaces = false;
  RenderMode = RENDER_FLAT_SHADING;
}
Ejemplo n.º 3
0
int LoadGraph(const char *FileName)
{
	GUINITCHECK;
	DXPGRAPHICSHANDLE *gptr = NULL;
	DXPTEXTURE3 *texptr = NULL;
	gptr = dxpGraphicsCreateGraphicHandle();
	if(!gptr)return -1;

	texptr = LoadPngImage(FileName);
	if(!texptr)
	{
		dxpGraphicsReleseGraphicHandle(gptr);
		return -1;
	}
	
	gptr->tex = texptr;
	++texptr->refcount;
	gptr->u0 = gptr->v0 = 0;
	gptr->u1 = texptr->umax;
	gptr->v1 = texptr->vmax;
	if(dxpGraphicsData.create_vram_graph)MoveGraphToVRAM(gptr->handle);
	if(dxpGraphicsData.create_swizzled_graph)SwizzleGraph(gptr->handle);
//	AppLogAdd("fh=%d;uv::%d,%d,%d,%d",gptr->handle,gptr->u0,gptr->u1,gptr->v0,gptr->v1);
	sceKernelDcacheWritebackAll();
	return gptr->handle;
}
Ejemplo n.º 4
0
CLoginDlg::CLoginDlg(CWnd* parent) 
	: QnSkinDialog(CLoginDlg::IDD, parent)
{
	SetTheme(theApp.m_pTheme);
	CString strPath = theApp.GetAppResPath() + _T("\\title_logo.png");
	m_pIconImage = LoadPngImage(strPath);
}
Ejemplo n.º 5
0
static void Load() {
  LoadPngImage(&texture, &texturePal, "data/texture-01.png");
}
Ejemplo n.º 6
0
static void Load() {
  LoadPngImage(&image, NULL, "data/samkaat-absinthe.png");
}
Ejemplo n.º 7
0
static void Load() {
  LoadPngImage(&texture, &texturePal, "data/texture-shades.png");
  LoadPngImage(&colorMap, NULL, "data/texture-shades-map.png");
}
Ejemplo n.º 8
0
static void Load() {
  LoadPngImage(&image, &imagePal, "data/samkaat-absinthe.png");
  LoadPngImage(&darken, NULL, "data/samkaat-absinthe-darken.png");
  LoadPngImage(&lighten, NULL, "data/samkaat-absinthe-lighten.png");
}