Saturday, October 27, 2012

Real time graph using SDL/C++



#include <iostream>
#include <windows.h>
#include <deque>
#include <SDL/SDL.h>
#include <SDL_draw.h>
#include <cmath>

using namespace std;

Draw a graph using SDL/C++

Drawing a graph on an x, y plane... you can disregard the load image function, remember i am using the sdl_draw.h library, which is freely available on the sdl website, but you can also implement the draw line and draw pixel function  yourself. This program is helpful in making a real time graph, just like the one you see on windows task manager under performance tab.

#include <iostream>
#include <string>
#include <deque>
#include <SDL/SDL.h>
#include <SDL/SDL_draw.h>
#include <SDL/SDL_image.h>
using namespace std;

How to create Custom push button in QT5

To be honest this is not my work its an exact copy from this link. http://mcmtechtips.blogspot.com/2012/03/shape-qpushbutton-in-your-own-st...