2022-06-10 23:13:57 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
/*
|
|
|
|
* MetaTextureMipmap
|
|
|
|
*
|
|
|
|
* Mipmap management object using OpenGL
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2023-07-21 13:37:20 +00:00
|
|
|
#pragma once
|
2022-06-10 23:13:57 +00:00
|
|
|
|
|
|
|
#include "clutter/clutter.h"
|
2023-05-29 12:41:00 +00:00
|
|
|
#include "meta/meta-multi-texture.h"
|
2022-06-10 23:13:57 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/**
|
2023-03-28 14:35:11 +00:00
|
|
|
* MetaTextureMipmap:
|
2023-05-23 18:25:54 +00:00
|
|
|
*
|
2023-03-28 14:35:11 +00:00
|
|
|
* Mipmap handling for textures
|
2022-06-10 23:13:57 +00:00
|
|
|
*
|
|
|
|
* A #MetaTextureMipmap is used to get GL mipmaps for a texture
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct _MetaTextureMipmap MetaTextureMipmap;
|
|
|
|
|
|
|
|
MetaTextureMipmap *meta_texture_mipmap_new (void);
|
|
|
|
|
|
|
|
void meta_texture_mipmap_free (MetaTextureMipmap *mipmap);
|
|
|
|
|
|
|
|
void meta_texture_mipmap_set_base_texture (MetaTextureMipmap *mipmap,
|
2023-05-29 12:41:00 +00:00
|
|
|
MetaMultiTexture *texture);
|
2022-06-10 23:13:57 +00:00
|
|
|
|
2023-05-29 12:41:00 +00:00
|
|
|
MetaMultiTexture *meta_texture_mipmap_get_paint_texture (MetaTextureMipmap *mipmap);
|
2022-06-10 23:13:57 +00:00
|
|
|
|
|
|
|
void meta_texture_mipmap_invalidate (MetaTextureMipmap *mipmap);
|
|
|
|
|
|
|
|
void meta_texture_mipmap_clear (MetaTextureMipmap *mipmap);
|
|
|
|
|
|
|
|
G_END_DECLS
|