Code Monkey home page Code Monkey logo

ofxui-1's Introduction

##ofxUI

不改动ofxUI原有使用逻辑和架构方式前提下 向下兼容 支持自定义样式 自定义控件位置属性

===== ###运行截图 ####可自定义外观样式 支持帧动画渲染

  • ofxUI with TattyUI image image

####与原ofxUI渲染帧率对比(向下兼容部分)

  • ofxUI with TattyUI image

  • ofxUI image

##何处改进 2014.11.19更新

  • 极大提高渲染效率 最差情况依旧能够提高将近5倍帧率


  • 控件加入极高效率的消息队列机制 最好的情况下是原先帧率的20倍


  • 帧动画支持正常限帧 优化外部操作逻辑


  • 更新scrollableCanvas绘制逻辑 使得其支持自定义皮肤样式


  • 仍旧保证向下兼容


  • 修正些许潜在BUG




###让帧率飞起来

  • 新建工程中 关闭垂直同步 尽可能的调高FPS 对比两个相同程序的FPS值
//渲染/输出fps这个过程也会带来些许性能影响 但这并不影响大局

ofSetVerticalSync(false);

ofSetFrameRate(10000);

===== ###2014.11.12更新

  • 改造ofxUIFrameAnimation


    • 支持自定义限帧


    • 最高层增添了接口能够直接自定义跳帧间隔(button toggle slider rangeSlider radio )


  • 改造ofxUIScrollableCanvas


    • 更好的支持自定义样式


  • 修正潜在BUG


    • 修正了当外部不自定义frameAnimation坐标但却尝试使用帧动画系统时的崩溃BUG


    • 修正了当采用自动排版样式时 自定义样式不更新的错误


===== ###2014.9.22更新

  • 改造ofxUIRangeSlider与ofxUISlider


    • 为其的顶部底部背景条更新为动画帧滚动条 理论上可支持模拟进度条样式


    • slider新增按钮(实质为更新后的ofxUIButton)理论支持所有ofxUIButton支持的特性


    • rangeSlider新增两个按钮并且保持原生拖动风格


  • 改造ofxRadio


    • 将其内部逻辑转换为radio为管理一系列ofxUIButton的controller


    • 理论所有内部按钮支持ofxUIButton支持的所有新旧特性 且风格一致


  • 支持OSX系统下Xcode(6.0及以下版本)编译使用


===== ###2014.3.1更新

  • 改造ofxUIScrollableCanvas的mouseDragged处理函数


    • 即便是当hitWidget的时候也同样进行下拉滑动 优化滑动逻辑


    • 默认情况Slider不会触发input改变滑动栏大小的机制


    • 下拉后回弹动画效果


    • 滑动下(scrollCanvas)添加类似iOS的阻尼效果


  • ofxUIDefines.h的宏定义改进


    • OFX_UI_STATE_OVER 修正为 OFX_UI_STATE_HOVER


    • 表达鼠标掠过而非和up同意义混淆


    • 鼠标抬起使用up表示 #define OFX_UI_STATE_UP 抬起状态


  • 各个派生类中mousePressed等函数在触发时

    • 是否需要触发Hover事件不确定 仍然需要用户反馈 即目前只能获取widget的up和down状态


  • 大部分在源代码上修正的位置都添加l "--!" 标示符 可以通过这样的方式快速查看修改的位置

##关于作者

   int 官某某 = Bingo;

ofxui-1's People

Contributors

bentleyblanks avatar

Watchers

 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.