Skip to content

Instantly share code, notes, and snippets.

View SimpleDrunk's full-sized avatar
🎯
Focusing

leeview SimpleDrunk

🎯
Focusing
View GitHub Profile
@SimpleDrunk
SimpleDrunk / Merry Christmas
Created February 26, 2014 02:19
Merry Christmas Demo
#include "Windows.h"
#include <vfw.h>
#include "resource.h"
#pragma comment(lib,"vfw32.lib")
#define ID_TIMER_MOVE 1
int i, j;
@SimpleDrunk
SimpleDrunk / FlowFont
Created December 26, 2013 08:44
Flow Font, transparent window.悬浮文字,透明窗口
#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,
@SimpleDrunk
SimpleDrunk / hexagon mosaic
Created December 6, 2013 01:28
『openframeworks』shader制作六边形马赛克效果 http://blog.csdn.net/simpledrunk/article/details/17095821
//testApp.h
#pragma once
#include "ofMain.h"
class testApp : public ofBaseApp{
public:
void setup();
void update();
@SimpleDrunk
SimpleDrunk / ofxJson weather check
Last active December 27, 2015 15:59
[code page] ofxJson天气预报解析,有issue,有时得到的数据不正确。
#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"));