Coder Social home page Coder Social logo

libgraphics's Introduction

LibGraphics

A simple graphics lib on Windows designed for a C programming class for junior undergraduate students

Known issues

  • CAD.c doesn't work

libgraphics's People

Contributors

xinguo2015 avatar

Stargazers

倪旌哲 avatar  avatar Yuxuan Lu avatar  avatar  avatar

Watchers

 avatar

libgraphics's Issues

关于绘制刷新闪烁问题

该图形库在呈现动画效果时往往会发生画面的闪烁,原因是窗口的WndProc函数,即指定的static LONG FAR PASCAL GraphicsEventProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);中,将msg的一个可能值WM_ERASEBKGND归入了default case,进入了DefWindowProc,然而该行为会导致窗口被全部刷白一次,故即使使用了双缓冲仍然会闪烁。只要加一个针对WM_ERASEBKGND的case然后直接返回0就可以避免闪烁哩!(详细内容可见这位大哥的仓库文档https://github.com/Kouek/Mini3DWithLibGraphics/blob/master/doc/ModifyLibGraphics-NoBlink.md)

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.