GithubHelp home page GithubHelp logo

kumaashi / sbwin Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 64 KB

SBWIN is a framework for Windows that software graphic processing and audio processing with a single header.

C++ 98.16% Batchfile 1.84%

sbwin's Introduction

SBWIN

About

SBWIN is a framework for Windows that software graphic processing and audio processing with a single header.

SBWIN scope to principle of graphics rendering and audio signal processing education for the me.

In addition, SBWIN does not have any graphics rendering functions.

It is designed to be written by yourself. The same applies to audio processing.

Also, Support basic input function for the windows OS.

How to make

  1. Install VS2017

  2. Run VsDevCmd.bat x64

  3. Apply cd Source directory.

  4. Run make.bat

Sample program LICENSE

MIT License https://opensource.org/licenses/mit-license.php

Sample Images and code

Image 000

#include "sbwin.h"

void update_audio(float *buf, int count, int ch)
{
	//nothing to do.
}

void update_frame(uint32_t *buf, int w, int h)
{
	static int frame_count = 0;
	printf("frame_count=%d, w=%d, h=%d\n", frame_count, w, h);
	for(int y = 0 ;  y < h; y++) {
		for(int x = 0 ;  x < w; x++) {
			buf[x + y * w] = rand();
		}
	}
	frame_count++;
}

int main(int argc, char *argv[])
{
	sb::run_app(argv[0], 160, 120, 640, 480,
		update_frame,
		update_audio);
	return 0;
}

AStyle options

http://astyle.sourceforge.net/

astyle --indent=tab --style=linux --indent=force-tab --indent-after-parens --indent-col1-comments --pad-header

Author

gyabo(aka yasai kumaashi)

sbwin's People

Contributors

kumaashi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.