Skip to content

Commit

Permalink
Added Slic, gradient(buggy)
Browse files Browse the repository at this point in the history
  • Loading branch information
zijun.wei committed Nov 17, 2015
1 parent 2817b61 commit f09ad09
Show file tree
Hide file tree
Showing 55 changed files with 2,166 additions and 1,123 deletions.
432 changes: 216 additions & 216 deletions .gitignore

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions GraphicsProject.sln
@@ -1,28 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GraphicsProject", "GraphicsProject\GraphicsProject.vcxproj", "{E954F000-72C4-4D3B-9767-F6A1022474B5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x64.ActiveCfg = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x64.Build.0 = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x86.ActiveCfg = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x86.Build.0 = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x64.ActiveCfg = Release|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x64.Build.0 = Release|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x86.ActiveCfg = Release|Win32
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GraphicsProject", "GraphicsProject\GraphicsProject.vcxproj", "{E954F000-72C4-4D3B-9767-F6A1022474B5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x64.ActiveCfg = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x64.Build.0 = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x86.ActiveCfg = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Debug|x86.Build.0 = Debug|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x64.ActiveCfg = Release|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x64.Build.0 = Release|x64
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x86.ActiveCfg = Release|Win32
{E954F000-72C4-4D3B-9767-F6A1022474B5}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -1,2 +1,2 @@
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
Debug|Win32|c:\users\hzwzi\documents\visual studio 2015\Projects\GraphicsProject\|
#TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
Debug|Win32|c:\users\hzwzi\documents\visual studio 2015\Projects\GraphicsProject\|
204 changes: 102 additions & 102 deletions GraphicsProject/GraphicsProject.cpp
@@ -1,102 +1,102 @@

// GraphicsProject.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "GraphicsProject.h"
#include "GraphicsProjectDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CGraphicsProjectApp

BEGIN_MESSAGE_MAP(CGraphicsProjectApp, CWinApp)
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()


// CGraphicsProjectApp construction

CGraphicsProjectApp::CGraphicsProjectApp()
{
// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

// TODO: add construction code here,
// Place all significant initialization in InitInstance
}


// The one and only CGraphicsProjectApp object

CGraphicsProjectApp theApp;


// CGraphicsProjectApp initialization

BOOL CGraphicsProjectApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();


AfxEnableControlContainer();

// Create the shell manager, in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;

// Activate "Windows Native" visual manager for enabling themes in MFC controls
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T("Local AppWizard-Generated Applications"));

CGraphicsProjectDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
else if (nResponse == -1)
{
TRACE(traceAppMsg, 0, "Warning: dialog creation failed, so application is terminating unexpectedly.\n");
TRACE(traceAppMsg, 0, "Warning: if you are using MFC controls on the dialog, you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n");
}

// Delete the shell manager created above.
if (pShellManager != NULL)
{
delete pShellManager;
}

// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}


// GraphicsProject.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "GraphicsProject.h"
#include "GraphicsProjectDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CGraphicsProjectApp

BEGIN_MESSAGE_MAP(CGraphicsProjectApp, CWinApp)
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()


// CGraphicsProjectApp construction

CGraphicsProjectApp::CGraphicsProjectApp()
{
// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

// TODO: add construction code here,
// Place all significant initialization in InitInstance
}


// The one and only CGraphicsProjectApp object

CGraphicsProjectApp theApp;


// CGraphicsProjectApp initialization

BOOL CGraphicsProjectApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();


AfxEnableControlContainer();

// Create the shell manager, in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;

// Activate "Windows Native" visual manager for enabling themes in MFC controls
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));

// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T("Local AppWizard-Generated Applications"));

CGraphicsProjectDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
else if (nResponse == -1)
{
TRACE(traceAppMsg, 0, "Warning: dialog creation failed, so application is terminating unexpectedly.\n");
TRACE(traceAppMsg, 0, "Warning: if you are using MFC controls on the dialog, you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS.\n");
}

// Delete the shell manager created above.
if (pShellManager != NULL)
{
delete pShellManager;
}

// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}

62 changes: 31 additions & 31 deletions GraphicsProject/GraphicsProject.h
@@ -1,32 +1,32 @@

// GraphicsProject.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h" // main symbols


// CGraphicsProjectApp:
// See GraphicsProject.cpp for the implementation of this class
//

class CGraphicsProjectApp : public CWinApp
{
public:
CGraphicsProjectApp();

// Overrides
public:
virtual BOOL InitInstance();

// Implementation

DECLARE_MESSAGE_MAP()
};


// GraphicsProject.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h" // main symbols


// CGraphicsProjectApp:
// See GraphicsProject.cpp for the implementation of this class
//

class CGraphicsProjectApp : public CWinApp
{
public:
CGraphicsProjectApp();

// Overrides
public:
virtual BOOL InitInstance();

// Implementation

DECLARE_MESSAGE_MAP()
};

extern CGraphicsProjectApp theApp;
Binary file modified GraphicsProject/GraphicsProject.rc
Binary file not shown.

0 comments on commit f09ad09

Please sign in to comment.