久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='oV2w9'><style id='oV2w9'><dir id='oV2w9'><q id='oV2w9'></q></dir></style></legend>
    • <bdo id='oV2w9'></bdo><ul id='oV2w9'></ul>

      <small id='oV2w9'></small><noframes id='oV2w9'>

      <i id='oV2w9'><tr id='oV2w9'><dt id='oV2w9'><q id='oV2w9'><span id='oV2w9'><b id='oV2w9'><form id='oV2w9'><ins id='oV2w9'></ins><ul id='oV2w9'></ul><sub id='oV2w9'></sub></form><legend id='oV2w9'></legend><bdo id='oV2w9'><pre id='oV2w9'><center id='oV2w9'></center></pre></bdo></b><th id='oV2w9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oV2w9'><tfoot id='oV2w9'></tfoot><dl id='oV2w9'><fieldset id='oV2w9'></fieldset></dl></div>
    1. <tfoot id='oV2w9'></tfoot>
      1. 釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象

        Release textures (GLKTextureInfo objects) allocated by GLKTextureLoader(釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象))

              <bdo id='y5HZK'></bdo><ul id='y5HZK'></ul>

              <small id='y5HZK'></small><noframes id='y5HZK'>

            • <tfoot id='y5HZK'></tfoot>
                <i id='y5HZK'><tr id='y5HZK'><dt id='y5HZK'><q id='y5HZK'><span id='y5HZK'><b id='y5HZK'><form id='y5HZK'><ins id='y5HZK'></ins><ul id='y5HZK'></ul><sub id='y5HZK'></sub></form><legend id='y5HZK'></legend><bdo id='y5HZK'><pre id='y5HZK'><center id='y5HZK'></center></pre></bdo></b><th id='y5HZK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='y5HZK'><tfoot id='y5HZK'></tfoot><dl id='y5HZK'><fieldset id='y5HZK'></fieldset></dl></div>
                    <tbody id='y5HZK'></tbody>

                  <legend id='y5HZK'><style id='y5HZK'><dir id='y5HZK'><q id='y5HZK'></q></dir></style></legend>
                  本文介紹了釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  剛開始在 iOS 上進行開發,尤其是 iOS 5 上與 OpenGL 相關的新功能,所以如果我的任何問題都非常基礎,我深表歉意.

                  New to developing on iOS and in particular the new OpenGL related features on iOS 5, so I apologize if any of my questions are so basic.

                  我正在開發的應用程序旨在接收相機幀并通過 OpenGL ES 在屏幕上顯示它們(圖形人員將接管它并添加我知之甚少的實際 OpenGL 繪圖).該應用程序是 XCode4 開發的,目標是運行 iOS 5 的 iPhone4.目前,我使用了 ARC 和 GLKit 功能,除了將圖像加載為紋理時出現內存泄漏外,一切都運行良好.該應用很快就會收到內存警告".

                  The app I am working on is designed to receive camera frames and display them on screen via OpenGL ES (the graphic folks will take over this and add the actual OpenGL drawing about which I know very little). The application is developed XCode4, and the target is iPhone4 running iOS 5. For the moment, I used the ARC and the GLKit functionality and all is working fine except for the memory leak in loading the images as texture. The app receives a "memory warning" very soon.

                  具體想問一下怎么釋放分配的貼圖

                  Specifically, I would like to ask how to release the textures allocated by

                  @property(retain) GLKTextureInfo *texture;
                  
                  -(void)setTextureCGImage:(CGImageRef)image 
                  {
                      NSError *error;
                  
                      self.texture = [GLKTextureLoader textureWithCGImage:image options:nil error:&error];
                  
                      if (error) 
                      {
                          NSLog(@"Error loading texture from image: %@",error);
                      }
                  }
                  

                  image 是從相機框架構建的石英圖像(來自蘋果的示例代碼).我知道問題不在代碼的那部分,因為如果我禁用分配,應用程序不會收到警告.

                  The image is a quartz image built from the camera frame (sample code from apple). I know the problem is not in that part of the code since if I disable the assignment, the app does not receive the warning.

                  推薦答案

                  我相信超級 hacky 解決方案,但它似乎有效:

                  Super hacky solution I believe, but it seems to work:

                  在賦值前添加以下內容:

                  Add the following before the assignment:

                  GLuint name = self.texture.name;
                  glDeleteTextures(1, &name);
                  

                  如果有更官方的方式(或者如果這是官方方式),如果有人可以告訴我,我將不勝感激.

                  If there's a more official way (or if this is the official way), I would appreciate if someone could let me know.

                  這篇關于釋放由 GLKTextureLoader 分配的紋理(GLKTextureInfo 對象)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))

                    • <tfoot id='iu4U1'></tfoot>
                    • <i id='iu4U1'><tr id='iu4U1'><dt id='iu4U1'><q id='iu4U1'><span id='iu4U1'><b id='iu4U1'><form id='iu4U1'><ins id='iu4U1'></ins><ul id='iu4U1'></ul><sub id='iu4U1'></sub></form><legend id='iu4U1'></legend><bdo id='iu4U1'><pre id='iu4U1'><center id='iu4U1'></center></pre></bdo></b><th id='iu4U1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='iu4U1'><tfoot id='iu4U1'></tfoot><dl id='iu4U1'><fieldset id='iu4U1'></fieldset></dl></div>
                          <tbody id='iu4U1'></tbody>
                          <bdo id='iu4U1'></bdo><ul id='iu4U1'></ul>
                          <legend id='iu4U1'><style id='iu4U1'><dir id='iu4U1'><q id='iu4U1'></q></dir></style></legend>

                            <small id='iu4U1'></small><noframes id='iu4U1'>

                            主站蜘蛛池模板: 国产精品视频在线播放 | 国产95在线 | 好姑娘高清在线观看电影 | av网站在线播放 | www.久久久久久久久久久 | 色久影院 | 成人一区二区三区视频 | 国产成人精品一区二区三 | 中文字幕亚洲一区二区三区 | 久久99精品国产麻豆婷婷 | 国产精品999| 91精品久久久久久久久 | 蜜桃精品视频在线 | 久久久性色精品国产免费观看 | 午夜视频网 | 亚洲综合大片69999 | 亚洲欧美国产一区二区三区 | 伊人亚洲| 午夜免费视频观看 | 国产精品久久久乱弄 | 欧美精品1区2区 | 日韩在线中文字幕 | 国产色婷婷精品综合在线播放 | 日韩高清一区 | 97av视频 | 人操人免费视频 | 丝袜美腿一区二区三区动态图 | 日本高清视频在线播放 | 亚洲成人中文字幕 | 成人av影院 | 亚洲一区中文字幕在线观看 | 精品久久久久久久久久 | 在线看av的网址 | 国产精品一区二区三区在线 | 亚洲日本成人 | 黄色av网站在线观看 | 精品无码久久久久久久动漫 | 亚洲精品一区二区三区蜜桃久 | 剑来高清在线观看 | 亚洲综合激情 | 日韩在线观看网站 |