This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Windows.h" | |
#include <vfw.h> | |
#include "resource.h" | |
#pragma comment(lib,"vfw32.lib") | |
#define ID_TIMER_MOVE 1 | |
int i, j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Windows.h" | |
#define ID_TIMER_MOVE 1 | |
int i, j; | |
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); | |
int WINAPI WinMain(HINSTANCE hInstance, | |
HINSTANCE hPrevInstance, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//testApp.h | |
#pragma once | |
#include "ofMain.h" | |
class testApp : public ofBaseApp{ | |
public: | |
void setup(); | |
void update(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "testApp.h" | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
font.loadFont("fzzhong.ttf", 96, true, true); | |
font_LT23.loadFont("LT23.ttf", 30, true, true); | |
font_ado.loadFont("Ado.otf", 24, true, true); | |
bgImg.loadImage("img/bg.png"); | |
//设置区域 | |
std::wcout.imbue(std::locale("CHS")); |