Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    tina linux SDL1.2.15

    爱搞机专区
    2
    2
    1430
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wj8331585 LV 6 last edited by

      请问tina linux SDL1.2.15 支持硬件双缓冲SDL_DOUBLEBUF吗?看到论坛里说支持

      我测试提示段错误。是还要配置什么环境的吗?
      screen = SDL_SetVideoMode(480, 32, 16, SDL_SWSURFACE | SDL_DOUBLEBUF);

      A 1 Reply Last reply Reply Quote Share 0
      • A
        awwwwa LV 8 @wj8331585 last edited by awwwwa

        @wj8331585 支持,出现段错误可以编译一个gdb进去看看哪里错了

        测试代码:

        w = 1920;
        h = 1080;
        bpp = 32;
        
        SDL_Init( SDL_INIT_EVERYTHING );
        SDL_SetVideoMode( w,h, bpp, SDL_HWSURFACE|SDL_DOUBLEBUF );
        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策