Code Monkey home page Code Monkey logo

oglpaint's Introduction

OGLPaint

本项目使用OpenGL完成了最基本的图形绘制,希望对学习OpenGL的你有所帮助

This program achieves basic graphics functions with OpenGL. Hoping it would have something helpful for you.

由于本代码是本人很久以前写的,所以项目为vc6.0工程,使用任意微软的IDE打开dsw工程文件即可。仅支持Windows

The code is so old that is using vc6.0 solution. You can use any IDE which supports Windows API to open it.

如果直接下载zip文件的话,Github会自动修改换行格式,所以可能导致vc6.0工程无法打开。请使用目录下的sln解决方案。此方案为vs2012版。你也可以使用Notepad++等工具将dsw和dsp文件换行格式转换为PC格式之后再用vc6.0打开

If you cannot open the project with the ".dsw" file, try the ".sln" one with VS2012 instead.

How To Use

You can see the functions in the menu.
But the Polygon Mode is special.
When you're using polygon mode, please keep the left button of your mouse down, 
then move your mouse. The graph would be seen as a line. Now you can click the 
right button of your mouse to set the vertex of the polygon. The process would 
end when you release your left button of your mouse.

Since it is only for study, the fill mode is not set. You can add some fill mode to the code, then rebuild it by yourself.

ScreenShot

oglpaint's People

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.