• 徒手画个disk不容易啊。。。


    static const GLfloat disk_vertex_buffer_data[] = {
        // quarter 1
        0.0f, 0.0f, -1.0f, 
        0.707f, 0.0f, -0.707f, 
        0.612f, 0.354f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        0.612f, 0.354f, -0.707f, 
        0.354f, 0.612f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        0.354f, 0.612f, -0.707f, 
        0.0f, 0.707f, -0.707f, 
    
        0.707f, 0.0f, -0.707f, 
        1.0, 0.0f, 0.0f, 
        0.866f, 0.5f, 0.0f, 
    
        0.612f, 0.354f, -0.707f, 
        0.707f, 0.0f, -0.707f, 
        0.866f, 0.5f, 0.0f, 
    
        0.612f, 0.354f, -0.707f, 
        0.866f, 0.5f, 0.0f, 
        0.5f, 0.866f, 0.0f, 
    
        0.354f, 0.612f, -0.707f, 
        0.612f, 0.354f, -0.707f, 
        0.5f, 0.866f, 0.0f, 
    
        0.354f, 0.612f, -0.707f, 
        0.5f, 0.866f, 0.0f, 
        0.0f, 1.0f, 0.0f, 
    
        0.0f, 0.707f, -0.707f, 
        0.354f, 0.612f, -0.707f, 
        0.0f, 1.0f, 0.0f, 
    
        // quarter 2
        0.0f, 0.0f, -1.0f, 
        0.0f, 0.707f, -0.707f, 
        -0.354f, 0.612f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        -0.354f, 0.612f, -0.707f, 
        -0.612f, 0.354f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        -0.612f, 0.354f, -0.707f, 
        -0.707f, 0.0f, -0.707f, 
    
        0.0f, 0.707f, -0.707f, 
        0.0f, 1.0f, 0.0f, 
        -0.5f, 0.866f, 0.0f, 
    
        -0.354f, 0.612f, -0.707f, 
        0.0f, 0.707f, -0.707f, 
        -0.5f, 0.866f, 0.0f, 
        
        -0.354f, 0.612f, -0.707f, 
        -0.5f, 0.866f, 0.0f, 
        -0.866f, 0.5f, 0.0f, 
    
        -0.612f, 0.354f, -0.707f, 
        -0.354f, 0.612f, -0.707f, 
        -0.866f, 0.5f, 0.0f, 
    
        -0.612f, 0.354f, -0.707f, 
        -0.866f, 0.5f, 0.0f, 
        -1.0f, 0.0f, 0.0f, 
    
        -0.707f, 0.0f, -0.707f, 
        -0.612f, 0.354f, -0.707f, 
        -1.0f, 0.0f, 0.0f, 
    
        // quarter 3
        0.0f, 0.0f, -1.0f, 
        -0.707f, 0.0f, -0.707f, 
        -0.612f, -0.354f, -0.707f, 
        
        0.0f, 0.0f, -1.0f, 
        -0.866f, -0.354f, -0.707f, 
        -0.354f, -0.612f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        -0.354f, -0.612f, -0.707f, 
        0.0f, -0.707f, -0.707f, 
    
        -0.707f, 0.0f, -0.707f, 
        -1.0f, 0.0f, 0.0f, 
        -0.866f, -0.5f, 0.0f, 
    
        -0.612f, -0.354f, -0.707f, 
        -0.707f, 0.0f, -0.707f, 
        -0.866f, -0.5f, 0.0f, 
    
        -0.612f, -0.354f, -0.707f, 
        -0.866f, -0.5f, 0.0f, 
        -0.5f, -0.866f, 0.0f, 
    
        -0.354f, -0.612f, -0.707f, 
        -0.612f, -0.354f, -0.707f, 
        -0.5f, -0.866f, 0.0f, 
    
        -0.354f, -0.612f, -0.707f, 
        -0.5f, -0.866f, 0.0f, 
        0.0f, -1.0f, 0.0f, 
    
        0.0f, -0.707f, -0.707f, 
        -0.354f, -0.612f, -0.707f, 
        0.0f, -1.0f, 0.0f, 
    
        // quarter 4
        0.0f, 0.0f, -1.0f, 
        0.0f, -0.707f, -0.707f, 
        0.354f, -0.612f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        0.354f, -0.612f, -0.707f, 
        0.612f, -0.354f, -0.707f, 
    
        0.0f, 0.0f, -1.0f, 
        0.612f, -0.354f, -0.707f, 
        0.707f, 0.0f, -0.707f, 
    
        0.0f, -0.707f, -0.707f, 
        0.0f, -1.0f, 0.0f, 
        0.5f, -0.866f, 0.0f, 
    
        0.354f, -0.612f, -0.707f, 
        0.0f, -0.707f, -0.707f, 
        0.5f, -0.866f, 0.0f, 
    
        0.354f, -0.612f, -0.707f, 
        0.5f, -0.866f, 0.0f, 
        0.866f, -0.5f, 0.0f, 
    
        0.612f, -0.354f, -0.707f, 
        0.354f, -0.612f, -0.707f, 
        0.866f, -0.5f, 0.0f, 
    
        0.612f, -0.354f, -0.707f, 
        0.866f, -0.5f, 0.0f, 
        1.0f, 0.0f, 0.0f, 
    
        0.707f, 0.0f, -0.707f, 
        0.612f, -0.354f, -0.707f, 
        1.0f, 0.0f, 0.0f, 
    };
  • 相关阅读:
    python函数执行超时处理的两种方法
    Flask常用方法函数汇总
    夜神模拟器操作
    简单auto.js自动化处理andorid手机案例
    TCP-三次握手和四次挥手简单概述
    android手机执行shell脚本
    接口测试要测试什么?怎么测?
    python unittest单元测试
    python webdriver 测试框架--数据驱动之Excel驱动
    顺时针打印矩阵
  • 原文地址:https://www.cnblogs.com/len3d/p/8546390.html
Copyright © 2020-2023  润新知